diff options
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; |