diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 7baee402..228af49b 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -2213,7 +2213,7 @@ process_header_line (struct MHD_Connection *connection, | |||
2213 | _("Received malformed line (no colon). Closing connection.\n")); | 2213 | _("Received malformed line (no colon). Closing connection.\n")); |
2214 | return MHD_NO; | 2214 | return MHD_NO; |
2215 | } | 2215 | } |
2216 | if (0 == (MHD_USE_PERMISSIVE_CHECKS & connection->daemon->options)) | 2216 | if (-1 >= connection->daemon->strict_for_client) |
2217 | { | 2217 | { |
2218 | /* check for whitespace before colon, which is not allowed | 2218 | /* check for whitespace before colon, which is not allowed |
2219 | by RFC 7230 section 3.2.4; we count space ' ' and | 2219 | by RFC 7230 section 3.2.4; we count space ' ' and |
@@ -2348,7 +2348,7 @@ parse_connection_headers (struct MHD_Connection *connection) | |||
2348 | const char *end; | 2348 | const char *end; |
2349 | 2349 | ||
2350 | parse_cookie_header (connection); | 2350 | parse_cookie_header (connection); |
2351 | if ( (0 != (MHD_USE_PEDANTIC_CHECKS & connection->daemon->options)) && | 2351 | if ( (1 <= connection->daemon->strict_for_client) && |
2352 | (NULL != connection->version) && | 2352 | (NULL != connection->version) && |
2353 | (MHD_str_equal_caseless_(MHD_HTTP_VERSION_1_1, | 2353 | (MHD_str_equal_caseless_(MHD_HTTP_VERSION_1_1, |
2354 | connection->version)) && | 2354 | connection->version)) && |