diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-24 17:48:14 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-24 17:48:14 +0200 |
commit | 13d3805dc696c2b72826ba862ed1347f17634510 (patch) | |
tree | 08fa947d69a0c5a0af17c23487e14db8ea2d0db4 | |
parent | 82e6ba21d28c6852658edcb03d935eb65aae36ef (diff) | |
download | libmicrohttpd-13d3805dc696c2b72826ba862ed1347f17634510.tar.gz libmicrohttpd-13d3805dc696c2b72826ba862ed1347f17634510.zip |
use bit-test as we do in MHD_get_connection_values()
-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 11c7099a..1dbbbd82 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -350,12 +350,12 @@ MHD_get_connection_values_n (struct MHD_Connection *connection, | |||
350 | if (NULL == iterator) | 350 | if (NULL == iterator) |
351 | for (pos = connection->headers_received; NULL != pos; pos = pos->next) | 351 | for (pos = connection->headers_received; NULL != pos; pos = pos->next) |
352 | { | 352 | { |
353 | if (kind == pos->kind) | 353 | if (0 != (kind & pos->kind)) |
354 | ret++; | 354 | ret++; |
355 | } | 355 | } |
356 | else | 356 | else |
357 | for (pos = connection->headers_received; NULL != pos; pos = pos->next) | 357 | for (pos = connection->headers_received; NULL != pos; pos = pos->next) |
358 | if (kind == pos->kind) | 358 | if (0 != (kind & pos->kind)) |
359 | { | 359 | { |
360 | ret++; | 360 | ret++; |
361 | if (MHD_NO == iterator (iterator_cls, | 361 | if (MHD_NO == iterator (iterator_cls, |