libmicrohttpd

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

commit e2a49611e067feff63f51b2f4594f0bea01367f4
parent ed765c47539326c8963fc5b77f9b910600764489
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sat, 16 Oct 2021 12:44:46 +0300

MHD_del_response_header(): documented new behaviors

Diffstat:
Msrc/include/microhttpd.h | 5+++++
Msrc/microhttpd/response.c | 5+++++
2 files changed, 10 insertions(+), 0 deletions(-)

diff --git 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 @@ -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