diff options
Diffstat (limited to 'src/testcurl/test_put_chunked.c')
-rw-r--r-- | src/testcurl/test_put_chunked.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/testcurl/test_put_chunked.c b/src/testcurl/test_put_chunked.c index 5820f2e0..d877a2ae 100644 --- a/src/testcurl/test_put_chunked.c +++ b/src/testcurl/test_put_chunked.c | |||
@@ -125,9 +125,8 @@ ahc_echo (void *cls, | |||
125 | #endif | 125 | #endif |
126 | return MHD_YES; | 126 | return MHD_YES; |
127 | } | 127 | } |
128 | response = MHD_create_response_from_buffer (strlen (url), | 128 | response = MHD_create_response_from_buffer_copy (strlen (url), |
129 | (void *) url, | 129 | (const void *) url); |
130 | MHD_RESPMEM_MUST_COPY); | ||
131 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 130 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |
132 | MHD_destroy_response (response); | 131 | MHD_destroy_response (response); |
133 | return ret; | 132 | return ret; |