commit 99f500a206d1d24c05322891384e18c1644525f5
parent 1b7c41ecbb80f669974e1b0592cb6e93439f410f
Author: Phil <phil.buschmann@tum.de>
Date: Mon, 22 Jan 2018 17:44:28 +0100
-Merge branch 'master' into identity_oidc
Diffstat:
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c
@@ -403,9 +403,9 @@ create_response (void *cls,
&header_iterator,
rest_conndata_handle);
con_handle->pp = MHD_create_post_processor(con,
- 4000,
- post_data_iter,
- rest_conndata_handle);
+ 4000,
+ post_data_iter,
+ rest_conndata_handle);
if (*upload_data_size)
{
MHD_post_process(con_handle->pp, upload_data, *upload_data_size);
@@ -414,6 +414,10 @@ create_response (void *cls,
{
MHD_destroy_post_processor(con_handle->pp);
}
+ MHD_get_connection_values (con,
+ MHD_HEADER_KIND,
+ &header_iterator,
+ rest_conndata_handle);
con_handle->state = GN_REST_STATE_PROCESSING;
con_handle->plugin->process_request (rest_conndata_handle,
&plugin_callback,