twister

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

commit 55d43f79aaeda1741676e9f5f93374349119bae3
parent 0e249e8afd22100e21f6fa8882d7b7a377531bdf
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Fri, 28 Sep 2018 15:21:47 +0200

Disabling compression.

Still not sure if this change is temporal or permament; for the
moment it fixes the "twisted" test case without interfering with
the logic.

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

diff --git a/src/twister/taler-twister-service.c b/src/twister/taler-twister-service.c @@ -857,6 +857,11 @@ con_val_iter (void *cls, char *new_value = NULL; (void) kind; + + if ((0 == strcmp ("Accept-Encoding", key)) + && (0 == strcmp ("deflate", value))) + return MHD_YES; + if (GNUNET_YES == malform_upload) { if (0 == strcmp ("Content-Length", key)) @@ -1582,7 +1587,7 @@ create_response (void *cls, curl_download_prepare (); /* means (?) upload is over. */ - if (0 == hr->io_len) /* FIXME: gnunet-gns-proxy has an extra check here... */ + if (0 == hr->io_len) hr->state = REQUEST_STATE_DOWNLOAD_STARTED; return MHD_YES; }