aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-08-03 14:30:01 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-08-03 14:30:01 +0200
commitbb398bb6b75f7db7c52718618a1cde9bedaf13c9 (patch)
tree42e7435ba49160d1b65c63923008014a1a731af0
parentd8c3df26a577ebbe623c05c43c00823c6b8312ae (diff)
downloadgnunet-bb398bb6b75f7db7c52718618a1cde9bedaf13c9.tar.gz
gnunet-bb398bb6b75f7db7c52718618a1cde9bedaf13c9.zip
- get postdata another way
-rw-r--r--src/rest/gnunet-rest-server.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c
index 875509536..1bf4b332e 100644
--- a/src/rest/gnunet-rest-server.c
+++ b/src/rest/gnunet-rest-server.c
@@ -428,7 +428,12 @@ create_response (void *cls,
428 MHD_HEADER_KIND, 428 MHD_HEADER_KIND,
429 (MHD_KeyValueIterator) & header_iterator, 429 (MHD_KeyValueIterator) & header_iterator,
430 rest_conndata_handle); 430 rest_conndata_handle);
431 con_handle->pp = MHD_create_post_processor (con, 431 MHD_get_connection_values (con,
432 MHD_POSTDATA_KIND,
433 (MHD_KeyValueIterator) &post_data_iter,
434 rest_conndata_handle);
435
436 /*con_handle->pp = MHD_create_post_processor (con,
432 65536, 437 65536,
433 &post_data_iter, 438 &post_data_iter,
434 rest_conndata_handle); 439 rest_conndata_handle);
@@ -436,7 +441,7 @@ create_response (void *cls,
436 { 441 {
437 MHD_post_process (con_handle->pp, upload_data, *upload_data_size); 442 MHD_post_process (con_handle->pp, upload_data, *upload_data_size);
438 } 443 }
439 MHD_destroy_post_processor (con_handle->pp); 444 MHD_destroy_post_processor (con_handle->pp);*/
440 445
441 con_handle->state = GN_REST_STATE_PROCESSING; 446 con_handle->state = GN_REST_STATE_PROCESSING;
442 con_handle->plugin->process_request (rest_conndata_handle, 447 con_handle->plugin->process_request (rest_conndata_handle,