twister

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

commit b5548ef68614c83348e03505cc15aae3b9f000f2
parent 21cbc3a72395a4e00462fcc051620f31e7d9c52f
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  5 Jun 2018 10:08:35 +0200

fix curl easy options for decoding: we almost certainly want content decoding, and must have transfer decoding

Diffstat:
Msrc/twister/taler-twister-service.c | 11+++--------
1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/twister/taler-twister-service.c b/src/twister/taler-twister-service.c @@ -729,6 +729,7 @@ con_val_iter (void *cls, return MHD_YES; } + /** * Walk a JSON object preparing its modification. * @@ -741,8 +742,7 @@ con_val_iter (void *cls, * to the jansson modification function. * To be freed by the caller. * @param json the object to be walked over. - * - * @return GNUNET_OK if @a path was valid. + * @return #GNUNET_OK if @a path was valid. */ static unsigned int walk_response_object (const char *path, @@ -825,6 +825,7 @@ walk_response_object (const char *path, return GNUNET_OK; } + /** * Modify a JSON object. NOTE, the new value to set is * taken from the global value `modify_value'. @@ -1228,12 +1229,6 @@ create_response (void *cls, CURLOPT_NOSIGNAL, 1L); curl_easy_setopt (hr->curl, - CURLOPT_HTTP_CONTENT_DECODING, - 0); - curl_easy_setopt (hr->curl, - CURLOPT_HTTP_TRANSFER_DECODING, - 0); - curl_easy_setopt (hr->curl, CURLOPT_PRIVATE, hr); curl_easy_setopt (hr->curl,