diff options
Diffstat (limited to 'src/testcurl/daemontest_postform.c')
-rw-r--r-- | src/testcurl/daemontest_postform.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testcurl/daemontest_postform.c b/src/testcurl/daemontest_postform.c index a1e29f69..545250ec 100644 --- a/src/testcurl/daemontest_postform.c +++ b/src/testcurl/daemontest_postform.c | |||
@@ -116,9 +116,9 @@ ahc_echo (void *cls, | |||
116 | MHD_post_process (pp, upload_data, *upload_data_size); | 116 | MHD_post_process (pp, upload_data, *upload_data_size); |
117 | if ((eok == 3) && (0 == *upload_data_size)) | 117 | if ((eok == 3) && (0 == *upload_data_size)) |
118 | { | 118 | { |
119 | response = MHD_create_response_from_data (strlen (url), | 119 | response = MHD_create_response_from_buffer (strlen (url), |
120 | (void *) url, | 120 | (void *) url, |
121 | MHD_NO, MHD_YES); | 121 | MHD_RESPMEM_MUST_COPY); |
122 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 122 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |
123 | MHD_destroy_response (response); | 123 | MHD_destroy_response (response); |
124 | MHD_destroy_post_processor (pp); | 124 | MHD_destroy_post_processor (pp); |