diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-22 01:21:55 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-22 01:21:55 +0200 |
commit | 4e0c95f0c26a4cfdfd6d2499d13e6c1238fa5e94 (patch) | |
tree | bdbb71b69716b7873c285c88d165ddf8dea3e04b /src/exchange-lib/exchange_api_track_transaction.c | |
parent | 310b120d5d8c7b67d8a36c8c7d8c4933ec4ff7f3 (diff) | |
download | exchange-4e0c95f0c26a4cfdfd6d2499d13e6c1238fa5e94.tar.xz |
put curl default options on one place
Diffstat (limited to 'src/exchange-lib/exchange_api_track_transaction.c')
-rw-r--r-- | src/exchange-lib/exchange_api_track_transaction.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/exchange-lib/exchange_api_track_transaction.c b/src/exchange-lib/exchange_api_track_transaction.c index 90585876b..3febf20fb 100644 --- a/src/exchange-lib/exchange_api_track_transaction.c +++ b/src/exchange-lib/exchange_api_track_transaction.c @@ -29,6 +29,7 @@ #include "taler_exchange_service.h" #include "exchange_api_handle.h" #include "taler_signatures.h" +#include "curl_defaults.h" /** @@ -319,21 +320,13 @@ TALER_EXCHANGE_track_transaction (struct TALER_EXCHANGE_Handle *exchange, dwh->depconf.h_contract_terms = *h_contract_terms; dwh->depconf.coin_pub = *coin_pub; - eh = curl_easy_init (); + eh = TEL_curl_easy_get (dwh->url); GNUNET_assert (NULL != (dwh->json_enc = json_dumps (deposit_wtid_obj, JSON_COMPACT))); json_decref (deposit_wtid_obj); GNUNET_assert (CURLE_OK == curl_easy_setopt (eh, - CURLOPT_URL, - 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 == |