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 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, |