libmicrohttpd

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

commit 38a571a908305b45a3d08c98f5de084313c803e3
parent 198551d29516fb2fa703d494ebd946c3bec0f482
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sat, 30 Oct 2021 17:28:30 +0300

Improved doxy for MHD_add_response_header()

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

diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h @@ -3822,10 +3822,12 @@ MHD_destroy_response (struct MHD_Response *response); * encoding, however for HTTP/1.0 clients chunked encoding will not be used * and manually set "Transfer-Encoding" header is automatically removed * for HTTP/1.0 clients - * + "Connection" is added automatically with value "Keep-Alive" or "Close". - * The header "Connection" with value "Close" could be set by this function - * to enforce closure of the connection after sending this response. - * "Keep-Alive" cannot be enforced and will be removed automatically. + * + "Connection" may be added automatically with value "Keep-Alive" (only + * for HTTP/1.0 clients) or "Close". The header "Connection" with value + * "Close" could be set by this function to enforce closure of + * the connection after sending this response. "Keep-Alive" cannot be + * enforced and will be removed automatically. + * @see #MHD_RF_SEND_KEEP_ALIVE_HEADER * * Some headers are pre-processed by this function: * * "Connection" headers are combined into single header entry, value is diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c @@ -460,10 +460,12 @@ del_response_header_connection (struct MHD_Response *response, * encoding, however for HTTP/1.0 clients chunked encoding will not be used * and manually set "Transfer-Encoding" header is automatically removed * for HTTP/1.0 clients - * + "Connection" is added automatically with value "Keep-Alive" or "Close". - * The header "Connection" with value "Close" could be set by this function - * to enforce closure of the connection after sending this response. - * "Keep-Alive" cannot be enforced and will be removed automatically. + * + "Connection" may be added automatically with value "Keep-Alive" (only + * for HTTP/1.0 clients) or "Close". The header "Connection" with value + * "Close" could be set by this function to enforce closure of + * the connection after sending this response. "Keep-Alive" cannot be + * enforced and will be removed automatically. + * @see #MHD_RF_SEND_KEEP_ALIVE_HEADER * * Some headers are pre-processed by this function: * * "Connection" headers are combined into single header entry, value is