libmicrohttpd

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

commit e0aacd946e1e2efdd352c31e86682d631baa86b2
parent f34781c87e48df6081eaf5defd1430f44013e8b6
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed,  8 Jan 2020 17:53:53 +0100

add connection: close to 401 replies (experimental, under review)

Diffstat:
Msrc/microhttpd/digestauth.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c @@ -1414,6 +1414,12 @@ MHD_queue_auth_fail_response2 (struct MHD_Connection *connection, header); else ret = MHD_NO; +#if 0 + if ( (MHD_YES == ret) && (AND in state : 100 continue aborting ...)) + ret = MHD_add_response_header (response, + MHD_HTTP_HEADER_CONNECTION, + "close"); +#endif free (header); } else