diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-13 12:36:59 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-13 12:36:59 +0000 |
commit | 7c88233a645884a468625effd7d8a3e0a0622e94 (patch) | |
tree | 2870bbe00c610be66553b2a59711a5af8d085f5c | |
parent | 7e0cf71faeee6d64d584ec293962f944b08f075d (diff) | |
download | libmicrohttpd-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-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/daemon/connection.c | 3 |
2 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,10 @@ | |||
1 | Sun 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 | |||
1 | Fri Nov 4 10:03:00 CET 2011 | 5 | Fri 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 | ||
4 | Thu Nov 3 10:14:59 CET 2011 | 9 | Thu 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, |