aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_timeout.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_timeout.c')
-rw-r--r--src/testcurl/test_timeout.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/testcurl/test_timeout.c b/src/testcurl/test_timeout.c
index 5c184a20..1b41bcb2 100644
--- a/src/testcurl/test_timeout.c
+++ b/src/testcurl/test_timeout.c
@@ -197,7 +197,7 @@ ahc_echo (void *cls,
197 enum MHD_Result ret; 197 enum MHD_Result ret;
198 (void) version; (void) req_cls; /* Unused. Silent compiler warning. */ 198 (void) version; (void) req_cls; /* Unused. Silent compiler warning. */
199 199
200 if (0 != strcmp ("PUT", method)) 200 if (0 != strcmp (MHD_HTTP_METHOD_PUT, method))
201 return MHD_NO; /* unexpected method */ 201 return MHD_NO; /* unexpected method */
202 if ((*done) == 0) 202 if ((*done) == 0)
203 { 203 {
@@ -215,9 +215,8 @@ ahc_echo (void *cls,
215 *done = 1; 215 *done = 1;
216 return MHD_YES; 216 return MHD_YES;
217 } 217 }
218 response = MHD_create_response_from_buffer (strlen (url), 218 response = MHD_create_response_from_buffer_copy (strlen (url),
219 (void *) url, 219 (const void *) url);
220 MHD_RESPMEM_MUST_COPY);
221 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); 220 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
222 MHD_destroy_response (response); 221 MHD_destroy_response (response);
223 return ret; 222 return ret;