From e2a49611e067feff63f51b2f4594f0bea01367f4 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Sat, 16 Oct 2021 12:44:46 +0300 Subject: MHD_del_response_header(): documented new behaviors --- src/include/microhttpd.h | 5 +++++ src/microhttpd/response.c | 5 +++++ 2 files changed, 10 insertions(+) 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 -- cgit v1.2.3