aboutsummaryrefslogtreecommitdiff
path: root/src/rest
diff options
context:
space:
mode:
authorPhil <phil.buschmann@tum.de>2018-02-12 14:57:28 +0100
committerPhil <phil.buschmann@tum.de>2018-02-12 14:57:28 +0100
commitfaf1fef1ed824ca5f7692ac8a6a50f5f35352b0e (patch)
treef0e6b6293ec0fc798ada56ab2382ca1ebbf55c45 /src/rest
parent0166171bb810849613164867bc3450bf5bf73a5a (diff)
downloadgnunet-faf1fef1ed824ca5f7692ac8a6a50f5f35352b0e.tar.gz
gnunet-faf1fef1ed824ca5f7692ac8a6a50f5f35352b0e.zip
-wip token endpoint refactor
Diffstat (limited to 'src/rest')
-rw-r--r--src/rest/gnunet-rest-server.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c
index 8e6688b5a..4313f07a2 100644
--- a/src/rest/gnunet-rest-server.c
+++ b/src/rest/gnunet-rest-server.c
@@ -410,14 +410,8 @@ create_response (void *cls,
410 { 410 {
411 MHD_post_process(con_handle->pp, upload_data, *upload_data_size); 411 MHD_post_process(con_handle->pp, upload_data, *upload_data_size);
412 } 412 }
413 else 413 MHD_destroy_post_processor(con_handle->pp);
414 { 414
415 MHD_destroy_post_processor(con_handle->pp);
416 }
417 MHD_get_connection_values (con,
418 MHD_HEADER_KIND,
419 &header_iterator,
420 rest_conndata_handle);
421 con_handle->state = GN_REST_STATE_PROCESSING; 415 con_handle->state = GN_REST_STATE_PROCESSING;
422 con_handle->plugin->process_request (rest_conndata_handle, 416 con_handle->plugin->process_request (rest_conndata_handle,
423 &plugin_callback, 417 &plugin_callback,
@@ -648,7 +642,7 @@ do_accept (void *cls)
648 _("Failed to pass client to MHD\n")); 642 _("Failed to pass client to MHD\n"));
649 return; 643 return;
650 } 644 }
651 645 GNUNET_free(s);
652 schedule_httpd (); 646 schedule_httpd ();
653} 647}
654 648