twister

HTTP fault injector for testing
Log | Files | Refs | README | LICENSE

commit 5ac6f8fd99df95071953c4c92947f4a28326cc39
parent a1537b1d94677db84807a755f134b076d2b728e6
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Wed, 16 May 2018 10:29:29 +0200

json_dumpb() way better.

Diffstat:
Msrc/twister/taler-twister-service.c | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/twister/taler-twister-service.c b/src/twister/taler-twister-service.c @@ -1259,10 +1259,12 @@ create_response (void *cls, flip_object (con, tmp, flip_path_ul); - /* No need to update 'io_len', as flipping a - * bit does not change the data size. */ - hr->io_buf = json_dumps (tmp, - JSON_COMPACT); + + json_dumpb (tmp, + hr->io_buf, + hr->io_len, /* Existing io_len is enough to accomodate this encoding. */ + JSON_COMPACT); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Flipped (?) upload object (%s)\n", hr->io_buf);