diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-08 17:53:53 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-08 17:54:09 +0100 |
commit | e0aacd946e1e2efdd352c31e86682d631baa86b2 (patch) | |
tree | 2cff505780ecd6b96168c9f082489deaba390c12 /src/microhttpd | |
parent | f34781c87e48df6081eaf5defd1430f44013e8b6 (diff) | |
download | libmicrohttpd-e0aacd946e1e2efdd352c31e86682d631baa86b2.tar.gz libmicrohttpd-e0aacd946e1e2efdd352c31e86682d631baa86b2.zip |
add connection: close to 401 replies (experimental, under review)
Diffstat (limited to 'src/microhttpd')
-rw-r--r-- | src/microhttpd/digestauth.c | 6 |
1 files changed, 6 insertions, 0 deletions
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, | |||
1414 | header); | 1414 | header); |
1415 | else | 1415 | else |
1416 | ret = MHD_NO; | 1416 | ret = MHD_NO; |
1417 | #if 0 | ||
1418 | if ( (MHD_YES == ret) && (AND in state : 100 continue aborting ...)) | ||
1419 | ret = MHD_add_response_header (response, | ||
1420 | MHD_HTTP_HEADER_CONNECTION, | ||
1421 | "close"); | ||
1422 | #endif | ||
1417 | free (header); | 1423 | free (header); |
1418 | } | 1424 | } |
1419 | else | 1425 | else |