commit bffe839e82ae0321effc370610e1c9872e83acf0
parent 0bd9dbbaaaf9661466d408409d65b8e32184212a
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Tue, 15 May 2018 12:57:13 +0200
dumping stringified flipped object into io_buf.
Diffstat:
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git 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,