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 87c77c29..8cc3490b 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -1040,7 +1040,7 @@ MHD_lookup_connection_value_n (struct MHD_Connection *connection, | |||
1040 | { | 1040 | { |
1041 | for (pos = connection->headers_received; NULL != pos; pos = pos->next) | 1041 | for (pos = connection->headers_received; NULL != pos; pos = pos->next) |
1042 | { | 1042 | { |
1043 | if ( (0 != (kind & pos->kind)) && | 1043 | if ( (kind == pos->kind) && |
1044 | (NULL == pos->header) ) | 1044 | (NULL == pos->header) ) |
1045 | break; | 1045 | break; |
1046 | } | 1046 | } |
@@ -1049,7 +1049,7 @@ MHD_lookup_connection_value_n (struct MHD_Connection *connection, | |||
1049 | { | 1049 | { |
1050 | for (pos = connection->headers_received; NULL != pos; pos = pos->next) | 1050 | for (pos = connection->headers_received; NULL != pos; pos = pos->next) |
1051 | { | 1051 | { |
1052 | if ( (0 != (kind & pos->kind)) && | 1052 | if ( (kind == pos->kind) && |
1053 | (key_size == pos->header_size) && | 1053 | (key_size == pos->header_size) && |
1054 | ( (key == pos->header) || | 1054 | ( (key == pos->header) || |
1055 | (MHD_str_equal_caseless_bin_n_ (key, | 1055 | (MHD_str_equal_caseless_bin_n_ (key, |