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 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) { /* other side closed connection */ connection->read_close = MHD_YES; - if (connection->readLoc > 0) + if ( (connection->headersReceived == 1) && + (connection->readLoc > 0) ) MHD_call_connection_handler (connection); #if DEBUG_CLOSE MHD_DLOG (connection->daemon, |