aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-12-12 15:56:13 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-12-12 16:10:29 +0300
commite0251c6d4f8698c3416d0a30812d7242fa143526 (patch)
tree48d69ccdc51e46bc958209dbbfad12a8c1df594e /src/testcurl
parenta08cfbe742ad15174a7b0d6cf12f53e9a686f99b (diff)
downloadlibmicrohttpd-e0251c6d4f8698c3416d0a30812d7242fa143526.tar.gz
libmicrohttpd-e0251c6d4f8698c3416d0a30812d7242fa143526.zip
test_get_chunked: follow HTTP specification
Use "Trailer: " header if trailers are used.
Diffstat (limited to 'src/testcurl')
-rw-r--r--src/testcurl/test_get_chunked.c7
1 files changed, 6 insertions, 1 deletions
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 @@
20*/ 20*/
21 21
22/** 22/**
23 * @file daemontest_get_chunked.c 23 * @file test_get_chunked.c
24 * @brief Testcase for libmicrohttpd GET operations with chunked content encoding 24 * @brief Testcase for libmicrohttpd GET operations with chunked content encoding
25 * @author Christian Grothoff 25 * @author Christian Grothoff
26 * @author Karlson2k (Evgeny Grin) 26 * @author Karlson2k (Evgeny Grin)
@@ -244,6 +244,11 @@ ahc_echo (void *cls,
244 "chunked")) 244 "chunked"))
245 abort (); 245 abort ();
246 } 246 }
247 if (MHD_NO == MHD_add_response_header (response,
248 MHD_HTTP_HEADER_TRAILER,
249 RESP_FOOTER_NAME))
250 abort ();
251
247 if (resp_string || (resp_sized && resp_empty)) 252 if (resp_string || (resp_sized && resp_empty))
248 { 253 {
249 /* There is no chance to add footer later */ 254 /* There is no chance to add footer later */