[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r28446 - libmicrohttpd/src/microhttpd
From: |
gnunet |
Subject: |
[GNUnet-SVN] r28446 - libmicrohttpd/src/microhttpd |
Date: |
Thu, 8 Aug 2013 07:24:57 +0200 |
Author: grothoff
Date: 2013-08-08 07:24:57 +0200 (Thu, 08 Aug 2013)
New Revision: 28446
Modified:
libmicrohttpd/src/microhttpd/connection.c
Log:
-handle method being NULL
Modified: libmicrohttpd/src/microhttpd/connection.c
===================================================================
--- libmicrohttpd/src/microhttpd/connection.c 2013-08-07 22:05:53 UTC (rev
28445)
+++ libmicrohttpd/src/microhttpd/connection.c 2013-08-08 05:24:57 UTC (rev
28446)
@@ -547,7 +547,8 @@
/* if not present, add content length */
if ( (NULL == MHD_get_response_header (connection->response,
MHD_HTTP_HEADER_CONTENT_LENGTH)) &&
- ( (0 != strcasecmp (connection->method,
+ ( (NULL == connection->method) ||
+ (0 != strcasecmp (connection->method,
MHD_HTTP_METHOD_CONNECT)) ||
(0 != connection->response->total_size) ) )
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r28446 - libmicrohttpd/src/microhttpd,
gnunet <=