commit 0560bb099cd55690f48ccdd95a99810f745c9657
parent 32a9f1dc4df378defaf1d5e7252b9241921f2191
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 20 Jun 2021 16:30:05 +0300
MHD_add_response_header(): improved doxy
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
@@ -3614,7 +3614,7 @@ MHD_destroy_response (struct MHD_Response *response);
*
* When reply is generated with queued response, some headers are generated
* automatically. Automatically generated headers are only sent to the client,
- * but not added back to the response.
+ * but not added back to the response object.
*
* The list of automatic headers:
* + "Date" header is added automatically unless already set by
@@ -3633,6 +3633,8 @@ MHD_destroy_response (struct MHD_Response *response);
* to enforce closure of the connection after sending this response.
* "Keep-Alive" cannot be enforced and will be removed automatically.
*
+ * 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
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
@@ -198,7 +198,7 @@ add_response_entry (struct MHD_Response *response,
*
* When reply is generated with queued response, some headers are generated
* automatically. Automatically generated headers are only sent to the client,
- * but not added back to the response.
+ * but not added back to the response object.
*
* The list of automatic headers:
* + "Date" header is added automatically unless already set by
@@ -217,6 +217,8 @@ add_response_entry (struct MHD_Response *response,
* to enforce closure of the connection after sending this response.
* "Keep-Alive" cannot be enforced and will be removed automatically.
*
+ * 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