diff options
Diffstat (limited to 'src/testcurl/daemontest_timeout.c')
-rw-r--r-- | src/testcurl/daemontest_timeout.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testcurl/daemontest_timeout.c b/src/testcurl/daemontest_timeout.c index 6032d78d..f3d82243 100644 --- a/src/testcurl/daemontest_timeout.c +++ b/src/testcurl/daemontest_timeout.c | |||
@@ -113,8 +113,9 @@ ahc_echo (void *cls, | |||
113 | *done = 1; | 113 | *done = 1; |
114 | return MHD_YES; | 114 | return MHD_YES; |
115 | } | 115 | } |
116 | response = MHD_create_response_from_data (strlen (url), | 116 | response = MHD_create_response_from_buffer (strlen (url), |
117 | (void *) url, MHD_NO, MHD_YES); | 117 | (void *) url, |
118 | MHD_RESPMEM_MUST_COPY); | ||
118 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 119 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |
119 | MHD_destroy_response (response); | 120 | MHD_destroy_response (response); |
120 | return ret; | 121 | return ret; |