diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-21 20:07:07 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-21 20:07:07 +0200 |
commit | 9e60296f92cb75ad10bfe23f6b84227d4d1cc222 (patch) | |
tree | b5325300c83ed09d5e657b70d5a7f636d7fd3865 /src/exchange-lib/exchange_api_refresh.c | |
parent | 94f24f012c1ea3dee9aa46e7b0515c4cd02fea22 (diff) |
use deflate in exchange-api
Diffstat (limited to 'src/exchange-lib/exchange_api_refresh.c')
-rw-r--r-- | src/exchange-lib/exchange_api_refresh.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/exchange-lib/exchange_api_refresh.c b/src/exchange-lib/exchange_api_refresh.c index bfc7d10d8..7610d5ca4 100644 --- a/src/exchange-lib/exchange_api_refresh.c +++ b/src/exchange-lib/exchange_api_refresh.c @@ -1215,6 +1215,10 @@ TALER_EXCHANGE_refresh_melt (struct TALER_EXCHANGE_Handle *exchange, rmh->json_enc)); GNUNET_assert (CURLE_OK == curl_easy_setopt (eh, + CURLOPT_ENCODING, + "deflate")); + GNUNET_assert (CURLE_OK == + curl_easy_setopt (eh, CURLOPT_POSTFIELDSIZE, strlen (rmh->json_enc))); ctx = MAH_handle_to_context (exchange); @@ -1648,6 +1652,10 @@ TALER_EXCHANGE_refresh_reveal (struct TALER_EXCHANGE_Handle *exchange, curl_easy_setopt (eh, CURLOPT_POSTFIELDSIZE, strlen (rrh->json_enc))); + GNUNET_assert (CURLE_OK == + curl_easy_setopt (eh, + CURLOPT_ENCODING, + "deflate")); ctx = MAH_handle_to_context (rrh->exchange); rrh->job = GNUNET_CURL_job_add (ctx, eh, |