From 232ff6e28d1fce08472a2f7a965d83d3e008d84c Mon Sep 17 00:00:00 2001 From: snowdrop Date: Fri, 27 May 2005 19:28:04 +0000 Subject: patch from mailinglist --- nanohttp/nanohttp-client.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'nanohttp/nanohttp-client.c') diff --git a/nanohttp/nanohttp-client.c b/nanohttp/nanohttp-client.c index 2f79bc0..b1d101f 100644 --- a/nanohttp/nanohttp-client.c +++ b/nanohttp/nanohttp-client.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-client.c,v 1.26 2004/11/02 23:09:26 snowdrop Exp $ +* $Id: nanohttp-client.c,v 1.27 2005/05/27 19:28:15 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -32,17 +32,19 @@ #include #include #include +#include #ifdef MEM_DEBUG #include #endif +#if 0 static int httpc_send_data(httpc_conn_t *conn, const unsigned char* data, size_t size) { return -1; } - +#endif /*-------------------------------------------------- FUNCTION: httpc_init DESC: Initialize http client connection @@ -188,7 +190,7 @@ httpc_header_add_date(httpc_conn_t * conn) /* Set date */ nw = time(NULL); localtime_r(&nw, &stm); - strftime(buffer, 255, "%a, %d %b %y %T GMT", &stm); + strftime(buffer, 255, "%a, %d %b %Y %T GMT", &stm); httpc_set_header(conn, HEADER_DATE, buffer); } -- cgit v1.1-32-gdbae