[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 05/05: test_get_chunked: follow HTTP specification
From: |
gnunet |
Subject: |
[libmicrohttpd] 05/05: test_get_chunked: follow HTTP specification |
Date: |
Sun, 12 Dec 2021 14:13:10 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit e0251c6d4f8698c3416d0a30812d7242fa143526
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Dec 12 15:56:13 2021 +0300
test_get_chunked: follow HTTP specification
Use "Trailer: " header if trailers are used.
---
src/testcurl/test_get_chunked.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/testcurl/test_get_chunked.c b/src/testcurl/test_get_chunked.c
index e5392d08..5a19a24e 100644
--- a/src/testcurl/test_get_chunked.c
+++ b/src/testcurl/test_get_chunked.c
@@ -20,7 +20,7 @@
*/
/**
- * @file daemontest_get_chunked.c
+ * @file test_get_chunked.c
* @brief Testcase for libmicrohttpd GET operations with chunked content
encoding
* @author Christian Grothoff
* @author Karlson2k (Evgeny Grin)
@@ -244,6 +244,11 @@ ahc_echo (void *cls,
"chunked"))
abort ();
}
+ if (MHD_NO == MHD_add_response_header (response,
+ MHD_HTTP_HEADER_TRAILER,
+ RESP_FOOTER_NAME))
+ abort ();
+
if (resp_string || (resp_sized && resp_empty))
{
/* There is no chance to add footer later */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.