diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-11-17 11:24:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-11-17 11:24:22 +0000 |
commit | a1afe5d1c253dd3382ac5b2591d8eb3ea3ed181f (patch) | |
tree | 8b978f434fb6801deccd14b14b306389c7edba46 /src/testcurl/daemontest_get_chunked.c | |
parent | c06b590afb3be1e876be1fcb887fd3eca9b1d65e (diff) | |
download | libmicrohttpd-a1afe5d1c253dd3382ac5b2591d8eb3ea3ed181f.tar.gz libmicrohttpd-a1afe5d1c253dd3382ac5b2591d8eb3ea3ed181f.zip |
allowing error signalling for chunked responses
Diffstat (limited to 'src/testcurl/daemontest_get_chunked.c')
-rw-r--r-- | src/testcurl/daemontest_get_chunked.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testcurl/daemontest_get_chunked.c b/src/testcurl/daemontest_get_chunked.c index e5b1a73a..fd2561ca 100644 --- a/src/testcurl/daemontest_get_chunked.c +++ b/src/testcurl/daemontest_get_chunked.c | |||
@@ -71,7 +71,7 @@ crc (void *cls, uint64_t pos, char *buf, size_t max) | |||
71 | if (pos == 128 * 10) | 71 | if (pos == 128 * 10) |
72 | { | 72 | { |
73 | MHD_add_response_header (*responseptr, "Footer", "working"); | 73 | MHD_add_response_header (*responseptr, "Footer", "working"); |
74 | return -1; /* end of stream */ | 74 | return MHD_CONTENT_READER_END_OF_STREAM; |
75 | } | 75 | } |
76 | if (max < 128) | 76 | if (max < 128) |
77 | abort (); /* should not happen in this testcase... */ | 77 | abort (); /* should not happen in this testcase... */ |
@@ -113,7 +113,7 @@ ahc_echo (void *cls, | |||
113 | responseptr = malloc (sizeof (struct MHD_Response *)); | 113 | responseptr = malloc (sizeof (struct MHD_Response *)); |
114 | if (responseptr == NULL) | 114 | if (responseptr == NULL) |
115 | return MHD_NO; | 115 | return MHD_NO; |
116 | response = MHD_create_response_from_callback (-1, | 116 | response = MHD_create_response_from_callback (MHD_SIZE_UNKNOWN, |
117 | 1024, | 117 | 1024, |
118 | &crc, responseptr, &crcf); | 118 | &crc, responseptr, &crcf); |
119 | *responseptr = response; | 119 | *responseptr = response; |