commit 9ba991c7d9066d89e87b944b0cb21f57f24607cf
parent 71e09c24e64ce9063f1f0dacfaa76363f48a8793
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 26 Sep 2021 18:34:59 +0300
Improved and fixed doxy for MHD_add_response_header()
Diffstat:
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
@@ -3713,14 +3713,16 @@ MHD_destroy_response (struct MHD_Response *response);
* allowed value is "chunked".
* * "Date" header: the only one header is allowed, the second added header
* replaces the first one.
- * * "Content-Length" manual header is now allowed.
+ * * "Content-Length" application-defined header is not allowed.
* @see #MHD_RF_INSANITY_HEADER_CONTENT_LENGTH
*
* Headers are used in order as they were added.
*
* @param response the response to add a header to
- * @param header the header name to add
- * @param content the header value to add
+ * @param header the header name to add, no need to be static, an internal copy
+ * will be created automatically
+ * @param content the header value to add, no need to be static, an internal
+ * copy will be created automatically
* @return #MHD_YES on success,
* #MHD_NO on error (i.e. invalid header or content format),
* or out of memory
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
@@ -472,14 +472,16 @@ del_response_header_connection (struct MHD_Response *response,
* allowed value is "chunked".
* * "Date" header: the only one header is allowed, the second added header
* replaces the first one.
- * * "Content-Length" manual header is now allowed.
+ * * "Content-Length" application-defined header is not allowed.
* @see #MHD_RF_INSANITY_HEADER_CONTENT_LENGTH
*
* Headers are used in order as they were added.
*
* @param response the response to add a header to
- * @param header the header name to add
- * @param content the header value to add
+ * @param header the header name to add, no need to be static, an internal copy
+ * will be created automatically
+ * @param content the header value to add, no need to be static, an internal
+ * copy will be created automatically
* @return #MHD_YES on success,
* #MHD_NO on error (i.e. invalid header or content format),
* or out of memory