diff options
Diffstat (limited to 'src/rest')
-rw-r--r-- | src/rest/gnunet-rest-server.c | 12 |
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 | ||