gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] branch master updated: Improved and fixed doxy for MHD_a


From: gnunet
Subject: [libmicrohttpd] branch master updated: Improved and fixed doxy for MHD_add_response_header()
Date: Sun, 26 Sep 2021 17:35:49 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 9ba991c7 Improved and fixed doxy for MHD_add_response_header()
9ba991c7 is described below

commit 9ba991c7d9066d89e87b944b0cb21f57f24607cf
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Sep 26 18:34:59 2021 +0300

    Improved and fixed doxy for MHD_add_response_header()
---
 src/include/microhttpd.h  | 8 +++++---
 src/microhttpd/response.c | 8 +++++---
 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);
  *   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
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,
  *   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

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]