diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-07-25 14:45:00 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-07-25 14:45:00 +0200 |
commit | db800351f55cc85dbe682b3d09f912cf32bd946c (patch) | |
tree | eb28dfbd2de764b668a1d94a1aea2f667ca24ff0 /src/microhttpd/connection.c | |
parent | eca0f2871b4a4e6d062a7141b1609a2825d7c008 (diff) | |
download | libmicrohttpd-db800351f55cc85dbe682b3d09f912cf32bd946c.tar.gz libmicrohttpd-db800351f55cc85dbe682b3d09f912cf32bd946c.zip |
revert last patch, should be only on master for now
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, |