diff options
-rw-r--r-- | src/rest/gnunet-rest-server.c | 9 |
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, |