[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
- [GNUnet-SVN] [taler-twister] branch master updated (2e773e8 -> 5ac6f8f), gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 11/11: json_dumpb() way better., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 06/11: dumping stringified flipped object into io_buf.,
gnunet <=
- [GNUnet-SVN] [taler-twister] 09/11: debug stmt, gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 05/11: object "walker" is HttpResponse-agnostic., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 03/11: Bring difference into the service component., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 08/11: export "flippers" to the internal API., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 02/11: Differentiate between bit-flipping in download and upload., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 01/11: Walk objects.., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 10/11: do not use "tmp" buffer for response, gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 04/11: cosmetics., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 07/11: debug stmt, gnunet, 2018/05/16