From e0aacd946e1e2efdd352c31e86682d631baa86b2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 8 Jan 2020 17:53:53 +0100 Subject: [PATCH] add connection: close to 401 replies (experimental, under review) --- src/microhttpd/digestauth.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c index 98ce433a..5a01cdf7 100644 --- 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