gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: - get postdata another way


From: gnunet
Subject: [gnunet] branch master updated: - get postdata another way
Date: Mon, 03 Aug 2020 14:36:09 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new bb398bb6b - get postdata another way
bb398bb6b is described below

commit bb398bb6b75f7db7c52718618a1cde9bedaf13c9
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Mon Aug 3 14:30:01 2020 +0200

    - get postdata another way
---
 src/rest/gnunet-rest-server.c | 9 +++++++--
 1 file 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,
                                MHD_HEADER_KIND,
                                (MHD_KeyValueIterator) & header_iterator,
                                rest_conndata_handle);
-    con_handle->pp = MHD_create_post_processor (con,
+    MHD_get_connection_values (con,
+                               MHD_POSTDATA_KIND,
+                               (MHD_KeyValueIterator) &post_data_iter,
+                               rest_conndata_handle);
+
+    /*con_handle->pp = MHD_create_post_processor (con,
                                                 65536,
                                                 &post_data_iter,
                                                 rest_conndata_handle);
@@ -436,7 +441,7 @@ create_response (void *cls,
     {
       MHD_post_process (con_handle->pp, upload_data, *upload_data_size);
     }
-    MHD_destroy_post_processor (con_handle->pp);
+    MHD_destroy_post_processor (con_handle->pp);*/
 
     con_handle->state = GN_REST_STATE_PROCESSING;
     con_handle->plugin->process_request (rest_conndata_handle,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]