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 | |
parent | 092b370587ff9dd258f52206e2ec58624f1cce5d (diff) | |
download | libmicrohttpd-f73873bc1925b1553effb57a1cc0dd19ad5e3302.tar.gz libmicrohttpd-f73873bc1925b1553effb57a1cc0dd19ad5e3302.zip |
fix regression introduced in cc5032b85
Diffstat (limited to 'src')
-rw-r--r-- | src/include/microhttpd.h | 2 | ||||
-rw-r--r-- | src/microhttpd/connection.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 9d28cdb1..4c05ffac 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -132,7 +132,7 @@ typedef intptr_t ssize_t; | |||
132 | * Current version of the library. | 132 | * Current version of the library. |
133 | * 0x01093001 = 1.9.30-1. | 133 | * 0x01093001 = 1.9.30-1. |
134 | */ | 134 | */ |
135 | #define MHD_VERSION 0x00096502 | 135 | #define MHD_VERSION 0x00096503 |
136 | 136 | ||
137 | /** | 137 | /** |
138 | * MHD-internal return code for "YES". | 138 | * MHD-internal return code for "YES". |
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, |