diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-07-25 14:42:56 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-07-25 14:42:56 +0200 |
commit | f73873bc1925b1553effb57a1cc0dd19ad5e3302 (patch) | |
tree | b4db0de3ee7e31785fc7434f59745837a919adf3 /src/microhttpd/connection.c | |
parent | 092b370587ff9dd258f52206e2ec58624f1cce5d (diff) | |
download | libmicrohttpd-f73873bc1925b1553effb57a1cc0dd19ad5e3302.tar.gz libmicrohttpd-f73873bc1925b1553effb57a1cc0dd19ad5e3302.zip |
fix regression introduced in cc5032b85
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 877f514b..fd977708 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -970,7 +970,7 @@ MHD_lookup_connection_value_n (struct MHD_Connection *connection, | |||
970 | { | 970 | { |
971 | for (pos = connection->headers_received; NULL != pos; pos = pos->next) | 971 | for (pos = connection->headers_received; NULL != pos; pos = pos->next) |
972 | { | 972 | { |
973 | if ( (kind == pos->kind) && | 973 | if ( (0 != (kind & pos->kind)) && |
974 | (NULL == pos->header) ) | 974 | (NULL == pos->header) ) |
975 | break; | 975 | break; |
976 | } | 976 | } |
@@ -979,7 +979,7 @@ MHD_lookup_connection_value_n (struct MHD_Connection *connection, | |||
979 | { | 979 | { |
980 | for (pos = connection->headers_received; NULL != pos; pos = pos->next) | 980 | for (pos = connection->headers_received; NULL != pos; pos = pos->next) |
981 | { | 981 | { |
982 | if ( (kind == pos->kind) && | 982 | if ( (0 != (kind & pos->kind)) && |
983 | (key_size == pos->header_size) && | 983 | (key_size == pos->header_size) && |
984 | ( (key == pos->header) || | 984 | ( (key == pos->header) || |
985 | (MHD_str_equal_caseless_bin_n_ (key, | 985 | (MHD_str_equal_caseless_bin_n_ (key, |