diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-10-16 12:44:46 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-10-16 12:44:46 +0300 |
commit | e2a49611e067feff63f51b2f4594f0bea01367f4 (patch) | |
tree | 493bfe77e1f5db1214525c0386dc6917129173c2 | |
parent | ed765c47539326c8963fc5b77f9b910600764489 (diff) |
MHD_del_response_header(): documented new behaviors
-rw-r--r-- | src/include/microhttpd.h | 5 | ||||
-rw-r--r-- | src/microhttpd/response.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 05ee42a0..ded6577f 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h @@ -3752,6 +3752,11 @@ MHD_add_response_footer (struct MHD_Response *response, /** * Delete a header (or footer) line from the response. * + * For "Connection" headers this function remove all tokens from existing + * value. Successful result means that at least one token has been removed. + * If all tokens are removed from "Connection" header, the empty "Connection" + * header removed. + * * @param response response to remove a header from * @param header the header to delete * @param content value to delete diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c index 3167992f..7df2a0c6 100644 --- a/src/microhttpd/response.c +++ b/src/microhttpd/response.c @@ -580,6 +580,11 @@ MHD_add_response_footer (struct MHD_Response *response, /** * Delete a header (or footer) line from the response. * + * For "Connection" headers this function remove all tokens from existing + * value. Successful result means that at least one token has been removed. + * If all tokens are removed from "Connection" header, the empty "Connection" + * header removed. + * * @param response response to remove a header from * @param header the header to delete * @param content value to delete |