aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-13 12:36:59 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-13 12:36:59 +0000
commit7c88233a645884a468625effd7d8a3e0a0622e94 (patch)
tree2870bbe00c610be66553b2a59711a5af8d085f5c
parent7e0cf71faeee6d64d584ec293962f944b08f075d (diff)
downloadlibmicrohttpd-7c88233a645884a468625effd7d8a3e0a0622e94.tar.gz
libmicrohttpd-7c88233a645884a468625effd7d8a3e0a0622e94.zip
trying to fix issue with 'connectin: close' header duplicated in footer reported by Dirk on mailinglist
-rw-r--r--ChangeLog7
-rw-r--r--src/daemon/connection.c3
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5474e8e2..364fc5c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
1Sun Nov 13 13:34:29 CET 2011
2 Trying to fix accidental addition of a "Connection: close" footer
3 under certain (rare) circumstances. -CG
4
1Fri Nov 4 10:03:00 CET 2011 5Fri Nov 4 10:03:00 CET 2011
2 Small updates to the tutorial. -CG 6 Small updates to the tutorial.
7 Releasing 0.9.16. -CG
3 8
4Thu Nov 3 10:14:59 CET 2011 9Thu Nov 3 10:14:59 CET 2011
5 shutdown(RDWR) fails on OS X after shutdown(RD), so only use 10 shutdown(RDWR) fails on OS X after shutdown(RD), so only use
diff --git a/src/daemon/connection.c b/src/daemon/connection.c
index e30e019a..d78d5eef 100644
--- a/src/daemon/connection.c
+++ b/src/daemon/connection.c
@@ -671,7 +671,8 @@ build_header_response (struct MHD_Connection *connection)
671 kind = MHD_FOOTER_KIND; 671 kind = MHD_FOOTER_KIND;
672 off = 0; 672 off = 0;
673 } 673 }
674 must_add_close = ( (connection->read_closed == MHD_YES) && 674 must_add_close = ( (connection->state == MHD_CONNECTION_FOOTERS_RECEIVED) &&
675 (connection->read_closed == MHD_YES) &&
675 (0 == strcasecmp (connection->version, 676 (0 == strcasecmp (connection->version,
676 MHD_HTTP_VERSION_1_1)) && 677 MHD_HTTP_VERSION_1_1)) &&
677 (NULL == MHD_get_response_header (connection->response, 678 (NULL == MHD_get_response_header (connection->response,