aboutsummaryrefslogtreecommitdiff
path: root/src/testzzuf
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-11-17 11:24:22 +0000
committerChristian Grothoff <christian@grothoff.org>2010-11-17 11:24:22 +0000
commita1afe5d1c253dd3382ac5b2591d8eb3ea3ed181f (patch)
tree8b978f434fb6801deccd14b14b306389c7edba46 /src/testzzuf
parentc06b590afb3be1e876be1fcb887fd3eca9b1d65e (diff)
downloadlibmicrohttpd-a1afe5d1c253dd3382ac5b2591d8eb3ea3ed181f.tar.gz
libmicrohttpd-a1afe5d1c253dd3382ac5b2591d8eb3ea3ed181f.zip
allowing error signalling for chunked responses
Diffstat (limited to 'src/testzzuf')
-rw-r--r--src/testzzuf/daemontest_get_chunked.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testzzuf/daemontest_get_chunked.c b/src/testzzuf/daemontest_get_chunked.c
index 655f402a..35eed49d 100644
--- a/src/testzzuf/daemontest_get_chunked.c
+++ b/src/testzzuf/daemontest_get_chunked.c
@@ -69,7 +69,7 @@ crc (void *cls, uint64_t pos, char *buf, size_t max)
69 if (pos == 128 * 10) 69 if (pos == 128 * 10)
70 { 70 {
71 MHD_add_response_header (*responseptr, "Footer", "working"); 71 MHD_add_response_header (*responseptr, "Footer", "working");
72 return -1; /* end of stream */ 72 return MHD_CONTENT_READER_END_OF_STREAM;
73 } 73 }
74 if (max < 128) 74 if (max < 128)
75 abort (); /* should not happen in this testcase... */ 75 abort (); /* should not happen in this testcase... */
@@ -109,7 +109,7 @@ ahc_echo (void *cls,
109 return MHD_YES; 109 return MHD_YES;
110 } 110 }
111 responseptr = malloc (sizeof (struct MHD_Response *)); 111 responseptr = malloc (sizeof (struct MHD_Response *));
112 response = MHD_create_response_from_callback (-1, 112 response = MHD_create_response_from_callback (MHD_SIZE_UNKNOWN,
113 1024, 113 1024,
114 &crc, responseptr, &crcf); 114 &crc, responseptr, &crcf);
115 *responseptr = response; 115 *responseptr = response;