diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-06-07 18:01:13 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-06-07 18:01:13 +0200 |
commit | 4195c246bb47080eb7ce8c55d25c825da96a3a6e (patch) | |
tree | 739652dddb75496282b8ea78b4cb3931b85afaa7 /src/testcurl | |
parent | b627fdaf25d1db7ae8e35963b5cae882881fc016 (diff) | |
download | libmicrohttpd-4195c246bb47080eb7ce8c55d25c825da96a3a6e.tar.gz libmicrohttpd-4195c246bb47080eb7ce8c55d25c825da96a3a6e.zip |
-more minor fixes
Diffstat (limited to 'src/testcurl')
-rw-r--r-- | src/testcurl/test_postform.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/testcurl/test_postform.c b/src/testcurl/test_postform.c index 87febcbc..a2dfd41d 100644 --- a/src/testcurl/test_postform.c +++ b/src/testcurl/test_postform.c | |||
@@ -145,12 +145,19 @@ ahc_echo (void *cls, | |||
145 | if (pp == NULL) | 145 | if (pp == NULL) |
146 | { | 146 | { |
147 | eok = 0; | 147 | eok = 0; |
148 | pp = MHD_create_post_processor (connection, 1024, &post_iterator, &eok); | 148 | pp = MHD_create_post_processor (connection, |
149 | if (pp == NULL) | 149 | 1024, |
150 | &post_iterator, | ||
151 | &eok); | ||
152 | if (NULL == pp) | ||
150 | abort (); | 153 | abort (); |
151 | *req_cls = pp; | 154 | *req_cls = pp; |
152 | } | 155 | } |
153 | MHD_post_process (pp, upload_data, *upload_data_size); | 156 | if (MHD_YES != |
157 | MHD_post_process (pp, | ||
158 | upload_data, | ||
159 | *upload_data_size)) | ||
160 | abort (); | ||
154 | if ((eok == 3) && (0 == *upload_data_size)) | 161 | if ((eok == 3) && (0 == *upload_data_size)) |
155 | { | 162 | { |
156 | response = MHD_create_response_from_buffer (strlen (url), | 163 | response = MHD_create_response_from_buffer (strlen (url), |