diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c index fe078009..f29242f5 100644 --- a/src/microhttpd/digestauth.c +++ b/src/microhttpd/digestauth.c @@ -1414,6 +1414,10 @@ MHD_queue_auth_fail_response2 (struct MHD_Connection *connection, header); else ret = MHD_NO; + if (MHD_YES == ret) + ret = MHD_add_response_header (response, + MHD_HTTP_HEADER_CONNECTION, + "close"); free (header); } else