diff options
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r-- | src/daemon/connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, |