gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-twister] 05/11: object "walker" is HttpResponse-agno


From: gnunet
Subject: [GNUnet-SVN] [taler-twister] 05/11: object "walker" is HttpResponse-agnostic.
Date: Wed, 16 May 2018 10:42:00 +0200

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

marcello pushed a commit to branch master
in repository twister.

commit 0bd9dbbaaaf9661466d408409d65b8e32184212a
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue May 15 12:42:57 2018 +0200

    object "walker" is HttpResponse-agnostic.
---
 src/twister/taler-twister-service.c | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/twister/taler-twister-service.c 
b/src/twister/taler-twister-service.c
index eb6db0c..c738507 100644
--- a/src/twister/taler-twister-service.c
+++ b/src/twister/taler-twister-service.c
@@ -1030,7 +1030,7 @@ modify_object (struct MHD_Connection *con,
 
 static void
 flip_object (struct MHD_Connection *con,
-             struct HttpRequest *hr,
+             json_t *json,
              char *flip_path)
 {
   char *target;
@@ -1039,7 +1039,7 @@ flip_object (struct MHD_Connection *con,
   if (GNUNET_OK != walk_response_object (flip_path,
                                          &parent,
                                          &target,
-                                         hr->json))
+                                         json))
     return;
 
   /* here, element is the parent of the element to be deleted. */
@@ -1240,14 +1240,12 @@ create_response (void *cls,
    * generate curl request to the proxied service.  */
   if (NULL == hr->curl)
   {
-    #if 0
-    if (GNUNET_YES == flip_upload)
+    if ('\0' != flip_path_ul[0])
     {
       /* */
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                  "Going to modify the upload object\n"),
+                  "Going to modify the upload object\n");
     }
-    #endif
 
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                 "Generating curl request\n");
@@ -1441,7 +1439,7 @@ create_response (void *cls,
   {
     TALER_LOG_DEBUG ("Will flip path: %s\n",
                      flip_path_dl);
-    flip_object (con, hr, flip_path_dl);
+    flip_object (con, hr->json, flip_path_dl);
   }
 
   if ('\0' != delete_path[0])

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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