diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 626cba2..2a05e23 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c @@ -2296,7 +2296,7 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) { case MHD_CONNECTION_INIT: line = get_next_header_line (connection); - if (NULL == line) + if (NULL == line || strlen(line)==0) { if (MHD_CONNECTION_INIT != connection->state) continue;