gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-twister] 06/11: dumping stringified flipped object i


From: gnunet
Subject: [GNUnet-SVN] [taler-twister] 06/11: dumping stringified flipped object into io_buf.
Date: Wed, 16 May 2018 10:42:01 +0200

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

marcello pushed a commit to branch master
in repository twister.

commit bffe839e82ae0321effc370610e1c9872e83acf0
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue May 15 12:57:13 2018 +0200

    dumping stringified flipped object into io_buf.
---
 src/twister/taler-twister-service.c | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/src/twister/taler-twister-service.c 
b/src/twister/taler-twister-service.c
index c738507..84a5836 100644
--- a/src/twister/taler-twister-service.c
+++ b/src/twister/taler-twister-service.c
@@ -1242,9 +1242,22 @@ create_response (void *cls,
   {
     if ('\0' != flip_path_ul[0])
     {
-      /* */
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                   "Going to modify the upload object\n");
+      json_t *tmp;
+
+      tmp = json_loads (hr->io_buf,
+                        JSON_REJECT_DUPLICATES,
+                        NULL);
+      flip_object (con,
+                   tmp,
+                   flip_path_ul);
+
+      /* No need to update 'io_length', as flipping a
+       * bit does not change the data size.  */
+      hr->io_buf = json_dumps (tmp,
+                               JSON_COMPACT);
+      json_decref (tmp);
     }
 
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,

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



reply via email to

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