aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r--src/daemon/connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c
index 864e1190..e51693d9 100644
--- a/src/daemon/connection.c
+++ b/src/daemon/connection.c
@@ -947,7 +947,8 @@ MHD_connection_handle_read (struct MHD_Connection *connection)
947 { 947 {
948 /* other side closed connection */ 948 /* other side closed connection */
949 connection->read_close = MHD_YES; 949 connection->read_close = MHD_YES;
950 if (connection->readLoc > 0) 950 if ( (connection->headersReceived == 1) &&
951 (connection->readLoc > 0) )
951 MHD_call_connection_handler (connection); 952 MHD_call_connection_handler (connection);
952#if DEBUG_CLOSE 953#if DEBUG_CLOSE
953 MHD_DLOG (connection->daemon, 954 MHD_DLOG (connection->daemon,