diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-06-05 10:08:35 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-06-05 10:08:35 +0200 |
commit | b5548ef68614c83348e03505cc15aae3b9f000f2 (patch) | |
tree | 40e6e5356217a205ea3b07d08be10afadcad52c4 | |
parent | 21cbc3a72395a4e00462fcc051620f31e7d9c52f (diff) | |
download | twister-b5548ef68614c83348e03505cc15aae3b9f000f2.tar.gz twister-b5548ef68614c83348e03505cc15aae3b9f000f2.tar.bz2 twister-b5548ef68614c83348e03505cc15aae3b9f000f2.zip |
fix curl easy options for decoding: we almost certainly want content decoding, and must have transfer decoding
-rw-r--r-- | src/twister/taler-twister-service.c | 11 |
1 files 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'. @@ -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, |