libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 13d3805dc696c2b72826ba862ed1347f17634510
parent 82e6ba21d28c6852658edcb03d935eb65aae36ef
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 24 Oct 2019 17:48:14 +0200

use bit-test as we do in MHD_get_connection_values()

Diffstat:
Msrc/microhttpd/connection.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c @@ -350,12 +350,12 @@ MHD_get_connection_values_n (struct MHD_Connection *connection, if (NULL == iterator) for (pos = connection->headers_received; NULL != pos; pos = pos->next) { - if (kind == pos->kind) + if (0 != (kind & pos->kind)) ret++; } else for (pos = connection->headers_received; NULL != pos; pos = pos->next) - if (kind == pos->kind) + if (0 != (kind & pos->kind)) { ret++; if (MHD_NO == iterator (iterator_cls,