From b5548ef68614c83348e03505cc15aae3b9f000f2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 5 Jun 2018 10:08:35 +0200 Subject: fix curl easy options for decoding: we almost certainly want content decoding, and must have transfer decoding --- src/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 index a9ea9ce..7abd855 100644 --- 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'. @@ -1227,12 +1228,6 @@ create_response (void *cls, curl_easy_setopt (hr->curl, 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); -- cgit v1.2.3