libmicrohttpd

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

commit 645b0140032d201a98f06878da8bb7ccecef9c88
parent 057ecebe5980e9f9a2e5dbaa1b55a824800ab97b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sat, 30 Oct 2021 20:10:48 +0300

build_header_response(): added assert

Diffstat:
Msrc/microhttpd/connection.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c @@ -2097,6 +2097,7 @@ build_header_response (struct MHD_Connection *connection) } /* The "Connection:" header */ mhd_assert (! use_conn_close || ! use_conn_k_alive); + mhd_assert (! use_conn_k_alive || ! use_conn_close); if (0 == (r->flags_auto & MHD_RAF_HAS_CONNECTION_HDR)) { if (use_conn_close)