diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-11-03 22:42:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-11-03 22:42:06 +0000 |
commit | 77ffe1508f26dcd84ecbe4c628eafe0fca7894a9 (patch) | |
tree | 44fcc89ebd817ef04bad6f012fe1fb1bf82e2ddf /src/microhttpd | |
parent | 5f57331ea1756c3aa50dfa69ce1425dcf6684537 (diff) | |
download | libmicrohttpd-77ffe1508f26dcd84ecbe4c628eafe0fca7894a9.tar.gz libmicrohttpd-77ffe1508f26dcd84ecbe4c628eafe0fca7894a9.zip |
-add patch from Eugenio Perez
Diffstat (limited to 'src/microhttpd')
-rw-r--r-- | src/microhttpd/connection.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index cf2ebdd0..6ec51383 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -2227,7 +2227,11 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
2227 | { | 2227 | { |
2228 | case MHD_CONNECTION_INIT: | 2228 | case MHD_CONNECTION_INIT: |
2229 | line = get_next_header_line (connection); | 2229 | line = get_next_header_line (connection); |
2230 | if (NULL == line) | 2230 | /* Check for empty string, as we might want |
2231 | to tolerate 'spurious' empty lines; also | ||
2232 | NULL means we didn't get a full line yet. */ | ||
2233 | if ( (NULL == line) || | ||
2234 | (0 == strlen (line) ) ) | ||
2231 | { | 2235 | { |
2232 | if (MHD_CONNECTION_INIT != connection->state) | 2236 | if (MHD_CONNECTION_INIT != connection->state) |
2233 | continue; | 2237 | continue; |