mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
-more minor fixes
This commit is contained in:
@@ -89,7 +89,16 @@ test_simple_large ()
|
||||
while (i < size)
|
||||
{
|
||||
delta = 1 + MHD_random_ () % (size - i);
|
||||
MHD_post_process (pp, &data[i], delta);
|
||||
if (MHD_YES !=
|
||||
MHD_post_process (pp,
|
||||
&data[i],
|
||||
delta))
|
||||
{
|
||||
fprintf (stderr,
|
||||
"MHD_post_process() failed!\n");
|
||||
MHD_destroy_post_processor (pp);
|
||||
return 1;
|
||||
}
|
||||
i += delta;
|
||||
}
|
||||
MHD_destroy_post_processor (pp);
|
||||
|
||||
@@ -145,12 +145,19 @@ ahc_echo (void *cls,
|
||||
if (pp == NULL)
|
||||
{
|
||||
eok = 0;
|
||||
pp = MHD_create_post_processor (connection, 1024, &post_iterator, &eok);
|
||||
if (pp == NULL)
|
||||
pp = MHD_create_post_processor (connection,
|
||||
1024,
|
||||
&post_iterator,
|
||||
&eok);
|
||||
if (NULL == pp)
|
||||
abort ();
|
||||
*req_cls = pp;
|
||||
}
|
||||
MHD_post_process (pp, upload_data, *upload_data_size);
|
||||
if (MHD_YES !=
|
||||
MHD_post_process (pp,
|
||||
upload_data,
|
||||
*upload_data_size))
|
||||
abort ();
|
||||
if ((eok == 3) && (0 == *upload_data_size))
|
||||
{
|
||||
response = MHD_create_response_from_buffer (strlen (url),
|
||||
|
||||
Reference in New Issue
Block a user