aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_postform.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_postform.c')
-rw-r--r--src/testcurl/test_postform.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/testcurl/test_postform.c b/src/testcurl/test_postform.c
index 1ada80e2..b429777b 100644
--- a/src/testcurl/test_postform.c
+++ b/src/testcurl/test_postform.c
@@ -160,9 +160,8 @@ ahc_echo (void *cls,
160 abort (); 160 abort ();
161 if ((eok == 3) && (0 == *upload_data_size)) 161 if ((eok == 3) && (0 == *upload_data_size))
162 { 162 {
163 response = MHD_create_response_from_buffer (strlen (url), 163 response = MHD_create_response_from_buffer_copy (strlen (url),
164 (void *) url, 164 (const void *) url);
165 MHD_RESPMEM_MUST_COPY);
166 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); 165 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
167 MHD_destroy_response (response); 166 MHD_destroy_response (response);
168 MHD_destroy_post_processor (pp); 167 MHD_destroy_post_processor (pp);