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 | |
parent | 94f24f012c1ea3dee9aa46e7b0515c4cd02fea22 (diff) |
use deflate in exchange-api
Diffstat (limited to 'src')
-rw-r--r-- | src/exchange-lib/exchange_api_deposit.c | 4 | ||||
-rw-r--r-- | src/exchange-lib/exchange_api_handle.c | 1 | ||||
-rw-r--r-- | src/exchange-lib/exchange_api_payback.c | 4 | ||||
-rw-r--r-- | src/exchange-lib/exchange_api_refresh.c | 8 | ||||
-rw-r--r-- | src/exchange-lib/exchange_api_refresh_link.c | 4 | ||||
-rw-r--r-- | src/exchange-lib/exchange_api_refund.c | 4 | ||||
-rw-r--r-- | src/exchange-lib/exchange_api_reserve.c | 4 | ||||
-rw-r--r-- | src/exchange-lib/exchange_api_track_transaction.c | 4 | ||||
-rw-r--r-- | src/exchange-lib/exchange_api_track_transfer.c | 4 | ||||
-rw-r--r-- | src/exchange-lib/exchange_api_wire.c | 4 |
10 files changed, 40 insertions, 1 deletions
diff --git a/src/exchange-lib/exchange_api_deposit.c b/src/exchange-lib/exchange_api_deposit.c index 674291044..50d52588d 100644 --- a/src/exchange-lib/exchange_api_deposit.c +++ b/src/exchange-lib/exchange_api_deposit.c @@ -508,6 +508,10 @@ TALER_EXCHANGE_deposit (struct TALER_EXCHANGE_Handle *exchange, dh->json_enc)); GNUNET_assert (CURLE_OK == curl_easy_setopt (eh, + CURLOPT_ENCODING, + "deflate")); + GNUNET_assert (CURLE_OK == + curl_easy_setopt (eh, CURLOPT_POSTFIELDSIZE, strlen (dh->json_enc))); ctx = MAH_handle_to_context (exchange); diff --git a/src/exchange-lib/exchange_api_handle.c b/src/exchange-lib/exchange_api_handle.c index bf52ac690..cd07e2e8b 100644 --- a/src/exchange-lib/exchange_api_handle.c +++ b/src/exchange-lib/exchange_api_handle.c @@ -1197,7 +1197,6 @@ request_keys (void *cls) curl_easy_setopt (eh, CURLOPT_URL, kr->url)); - /* FIXME: do elsewhere as well */ GNUNET_assert (CURLE_OK == curl_easy_setopt (eh, CURLOPT_ENCODING, diff --git a/src/exchange-lib/exchange_api_payback.c b/src/exchange-lib/exchange_api_payback.c index 5d9e10630..767ab5c85 100644 --- a/src/exchange-lib/exchange_api_payback.c +++ b/src/exchange-lib/exchange_api_payback.c @@ -337,6 +337,10 @@ TALER_EXCHANGE_payback (struct TALER_EXCHANGE_Handle *exchange, ph->url)); GNUNET_assert (CURLE_OK == curl_easy_setopt (eh, + CURLOPT_ENCODING, + "deflate")); + GNUNET_assert (CURLE_OK == + curl_easy_setopt (eh, CURLOPT_POSTFIELDS, ph->json_enc)); GNUNET_assert (CURLE_OK == 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, diff --git a/src/exchange-lib/exchange_api_refresh_link.c b/src/exchange-lib/exchange_api_refresh_link.c index 1656ec054..1259a2265 100644 --- a/src/exchange-lib/exchange_api_refresh_link.c +++ b/src/exchange-lib/exchange_api_refresh_link.c @@ -413,6 +413,10 @@ TALER_EXCHANGE_refresh_link (struct TALER_EXCHANGE_Handle *exchange, curl_easy_setopt (eh, CURLOPT_URL, rlh->url)); + GNUNET_assert (CURLE_OK == + curl_easy_setopt (eh, + CURLOPT_ENCODING, + "deflate")); ctx = MAH_handle_to_context (exchange); rlh->job = GNUNET_CURL_job_add (ctx, eh, diff --git a/src/exchange-lib/exchange_api_refund.c b/src/exchange-lib/exchange_api_refund.c index db8e1bd6d..1a50b0901 100644 --- a/src/exchange-lib/exchange_api_refund.c +++ b/src/exchange-lib/exchange_api_refund.c @@ -379,6 +379,10 @@ refund_obj = json_pack ("{s:o, s:o," /* amount/fee */ rh->url)); GNUNET_assert (CURLE_OK == curl_easy_setopt (eh, + CURLOPT_ENCODING, + "deflate")); + GNUNET_assert (CURLE_OK == + curl_easy_setopt (eh, CURLOPT_POSTFIELDS, rh->json_enc)); GNUNET_assert (CURLE_OK == diff --git a/src/exchange-lib/exchange_api_reserve.c b/src/exchange-lib/exchange_api_reserve.c index 9b01242b9..c75639fee 100644 --- a/src/exchange-lib/exchange_api_reserve.c +++ b/src/exchange-lib/exchange_api_reserve.c @@ -630,6 +630,10 @@ TALER_EXCHANGE_reserve_status (struct TALER_EXCHANGE_Handle *exchange, curl_easy_setopt (eh, CURLOPT_URL, rsh->url)); + GNUNET_assert (CURLE_OK == + curl_easy_setopt (eh, + CURLOPT_ENCODING, + "deflate")); ctx = MAH_handle_to_context (exchange); rsh->job = GNUNET_CURL_job_add (ctx, eh, diff --git a/src/exchange-lib/exchange_api_track_transaction.c b/src/exchange-lib/exchange_api_track_transaction.c index bdbb105e4..90585876b 100644 --- a/src/exchange-lib/exchange_api_track_transaction.c +++ b/src/exchange-lib/exchange_api_track_transaction.c @@ -330,6 +330,10 @@ TALER_EXCHANGE_track_transaction (struct TALER_EXCHANGE_Handle *exchange, dwh->url)); GNUNET_assert (CURLE_OK == curl_easy_setopt (eh, + CURLOPT_ENCODING, + "deflate")); + GNUNET_assert (CURLE_OK == + curl_easy_setopt (eh, CURLOPT_POSTFIELDS, dwh->json_enc)); GNUNET_assert (CURLE_OK == diff --git a/src/exchange-lib/exchange_api_track_transfer.c b/src/exchange-lib/exchange_api_track_transfer.c index ef4135f01..0412a174b 100644 --- a/src/exchange-lib/exchange_api_track_transfer.c +++ b/src/exchange-lib/exchange_api_track_transfer.c @@ -358,6 +358,10 @@ TALER_EXCHANGE_track_transfer (struct TALER_EXCHANGE_Handle *exchange, curl_easy_setopt (eh, CURLOPT_URL, wdh->url)); + GNUNET_assert (CURLE_OK == + curl_easy_setopt (eh, + CURLOPT_ENCODING, + "deflate")); ctx = MAH_handle_to_context (exchange); wdh->job = GNUNET_CURL_job_add (ctx, eh, diff --git a/src/exchange-lib/exchange_api_wire.c b/src/exchange-lib/exchange_api_wire.c index 673f79ae5..fe6e1c5e4 100644 --- a/src/exchange-lib/exchange_api_wire.c +++ b/src/exchange-lib/exchange_api_wire.c @@ -412,6 +412,10 @@ TALER_EXCHANGE_wire (struct TALER_EXCHANGE_Handle *exchange, curl_easy_setopt (eh, CURLOPT_URL, wh->url)); + GNUNET_assert (CURLE_OK == + curl_easy_setopt (eh, + CURLOPT_ENCODING, + "deflate")); ctx = MAH_handle_to_context (exchange); wh->job = GNUNET_CURL_job_add (ctx, eh, |