aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-09-26 18:34:59 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-09-26 18:34:59 +0300
commit9ba991c7d9066d89e87b944b0cb21f57f24607cf (patch)
tree4663acacea419cc08046dfaf09269857dfa58b67 /src
parent71e09c24e64ce9063f1f0dacfaa76363f48a8793 (diff)
downloadlibmicrohttpd-9ba991c7d9066d89e87b944b0cb21f57f24607cf.tar.gz
libmicrohttpd-9ba991c7d9066d89e87b944b0cb21f57f24607cf.zip
Improved and fixed doxy for MHD_add_response_header()
Diffstat (limited to 'src')
-rw-r--r--src/include/microhttpd.h8
-rw-r--r--src/microhttpd/response.c8
2 files changed, 10 insertions, 6 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 74f539ad..e5d33bc2 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -3713,14 +3713,16 @@ MHD_destroy_response (struct MHD_Response *response);
3713 * allowed value is "chunked". 3713 * allowed value is "chunked".
3714 * * "Date" header: the only one header is allowed, the second added header 3714 * * "Date" header: the only one header is allowed, the second added header
3715 * replaces the first one. 3715 * replaces the first one.
3716 * * "Content-Length" manual header is now allowed. 3716 * * "Content-Length" application-defined header is not allowed.
3717 * @see #MHD_RF_INSANITY_HEADER_CONTENT_LENGTH 3717 * @see #MHD_RF_INSANITY_HEADER_CONTENT_LENGTH
3718 * 3718 *
3719 * Headers are used in order as they were added. 3719 * Headers are used in order as they were added.
3720 * 3720 *
3721 * @param response the response to add a header to 3721 * @param response the response to add a header to
3722 * @param header the header name to add 3722 * @param header the header name to add, no need to be static, an internal copy
3723 * @param content the header value to add 3723 * will be created automatically
3724 * @param content the header value to add, no need to be static, an internal
3725 * copy will be created automatically
3724 * @return #MHD_YES on success, 3726 * @return #MHD_YES on success,
3725 * #MHD_NO on error (i.e. invalid header or content format), 3727 * #MHD_NO on error (i.e. invalid header or content format),
3726 * or out of memory 3728 * or out of memory
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index 2131030a..3167992f 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -472,14 +472,16 @@ del_response_header_connection (struct MHD_Response *response,
472 * allowed value is "chunked". 472 * allowed value is "chunked".
473 * * "Date" header: the only one header is allowed, the second added header 473 * * "Date" header: the only one header is allowed, the second added header
474 * replaces the first one. 474 * replaces the first one.
475 * * "Content-Length" manual header is now allowed. 475 * * "Content-Length" application-defined header is not allowed.
476 * @see #MHD_RF_INSANITY_HEADER_CONTENT_LENGTH 476 * @see #MHD_RF_INSANITY_HEADER_CONTENT_LENGTH
477 * 477 *
478 * Headers are used in order as they were added. 478 * Headers are used in order as they were added.
479 * 479 *
480 * @param response the response to add a header to 480 * @param response the response to add a header to
481 * @param header the header name to add 481 * @param header the header name to add, no need to be static, an internal copy
482 * @param content the header value to add 482 * will be created automatically
483 * @param content the header value to add, no need to be static, an internal
484 * copy will be created automatically
483 * @return #MHD_YES on success, 485 * @return #MHD_YES on success,
484 * #MHD_NO on error (i.e. invalid header or content format), 486 * #MHD_NO on error (i.e. invalid header or content format),
485 * or out of memory 487 * or out of memory