aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemontest_postform.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/daemontest_postform.c')
-rw-r--r--src/daemon/daemontest_postform.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/daemon/daemontest_postform.c b/src/daemon/daemontest_postform.c
index a82d4705..c94e2b06 100644
--- a/src/daemon/daemontest_postform.c
+++ b/src/daemon/daemontest_postform.c
@@ -20,7 +20,7 @@
20 20
21/** 21/**
22 * @file daemontest_post.c 22 * @file daemontest_post.c
23 * @brief Testcase for libmicrohttpd POST operations 23 * @brief Testcase for libmicrohttpd POST operations using multipart/postform data
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 */ 25 */
26 26
@@ -107,6 +107,8 @@ ahc_echo (void *cls,
107 { 107 {
108 eok = 0; 108 eok = 0;
109 pp = MHD_create_post_processor (connection, 1024, &post_iterator, &eok); 109 pp = MHD_create_post_processor (connection, 1024, &post_iterator, &eok);
110 if (pp == NULL)
111 abort();
110 *unused = pp; 112 *unused = pp;
111 } 113 }
112 MHD_post_process (pp, upload_data, *upload_data_size); 114 MHD_post_process (pp, upload_data, *upload_data_size);
@@ -161,7 +163,6 @@ testInternalPost ()
161 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 163 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
162 pd = make_form(); 164 pd = make_form();
163 curl_easy_setopt(c, CURLOPT_HTTPPOST, pd); 165 curl_easy_setopt(c, CURLOPT_HTTPPOST, pd);
164 curl_easy_setopt (c, CURLOPT_VERBOSE, 1L);
165 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 166 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);
166 curl_easy_setopt (c, CURLOPT_TIMEOUT, 2L); 167 curl_easy_setopt (c, CURLOPT_TIMEOUT, 2L);
167 if (oneone) 168 if (oneone)