aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_postform.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-30 15:32:43 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-10-01 15:00:34 +0300
commit53207f93b0886adddf9bc0fa6ac1ba88db7a6682 (patch)
tree579197e64fa48aa40741f4321c661519e5f0ffa9 /src/testcurl/test_postform.c
parentb34d7a3e0293cfd3248000bacfc5f5ae52903e21 (diff)
downloadlibmicrohttpd-53207f93b0886adddf9bc0fa6ac1ba88db7a6682.tar.gz
libmicrohttpd-53207f93b0886adddf9bc0fa6ac1ba88db7a6682.zip
testcurl: Muted some compiler warnings, minor refactoring
Used new API for creating of responses to avoid 'const' drops
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);