diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index e198b6cd..6529e53b 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -547,7 +547,8 @@ add_extra_headers (struct MHD_Connection *connection) | |||
547 | /* if not present, add content length */ | 547 | /* if not present, add content length */ |
548 | if ( (NULL == MHD_get_response_header (connection->response, | 548 | if ( (NULL == MHD_get_response_header (connection->response, |
549 | MHD_HTTP_HEADER_CONTENT_LENGTH)) && | 549 | MHD_HTTP_HEADER_CONTENT_LENGTH)) && |
550 | ( (0 != strcasecmp (connection->method, | 550 | ( (NULL == connection->method) || |
551 | (0 != strcasecmp (connection->method, | ||
551 | MHD_HTTP_METHOD_CONNECT)) || | 552 | MHD_HTTP_METHOD_CONNECT)) || |
552 | (0 != connection->response->total_size) ) ) | 553 | (0 != connection->response->total_size) ) ) |
553 | { | 554 | { |