gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r5426 - in libmicrohttpd: . src/daemon


From: gnunet
Subject: [GNUnet-SVN] r5426 - in libmicrohttpd: . src/daemon
Date: Wed, 8 Aug 2007 14:12:16 -0600 (MDT)

Author: grothoff
Date: 2007-08-08 14:12:16 -0600 (Wed, 08 Aug 2007)
New Revision: 5426

Modified:
   libmicrohttpd/README
   libmicrohttpd/src/daemon/connection.c
Log:
fixing mantis 1262

Modified: libmicrohttpd/README
===================================================================
--- libmicrohttpd/README        2007-08-08 20:03:11 UTC (rev 5425)
+++ libmicrohttpd/README        2007-08-08 20:12:16 UTC (rev 5426)
@@ -17,7 +17,6 @@
 - support chunked requests from clients (#1260, ARCH, TEST)
 - send proper error code back if client forgot the "Host" header (#1264, TRIV)
 - automatically add MHD_HTTP_HEADER_DATE if client "forgot" to add one (#1261, 
TRIV)
-- automatically drop body from responses to "HEAD" requests (#1262, TRIV)
 
 For POST:
 =========

Modified: libmicrohttpd/src/daemon/connection.c
===================================================================
--- libmicrohttpd/src/daemon/connection.c       2007-08-08 20:03:11 UTC (rev 
5425)
+++ libmicrohttpd/src/daemon/connection.c       2007-08-08 20:12:16 UTC (rev 
5426)
@@ -131,6 +131,13 @@
   MHD_increment_response_rc(response);
   connection->response = response;
   connection->responseCode = status_code;
+  if ( (connection->method != NULL) &&
+       (0 == strcasecmp(connection->method,
+                       MHD_HTTP_METHOD_HEAD)) ) {
+    /* if this is a "HEAD" request, pretend that we
+       have already sent the full message body */
+    connection->messagePos = response->total_size;  
+  }
   return MHD_YES;
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]