aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-lib/exchange_api_handle.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-22 01:21:55 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-22 01:21:55 +0200
commit4e0c95f0c26a4cfdfd6d2499d13e6c1238fa5e94 (patch)
treebdbb71b69716b7873c285c88d165ddf8dea3e04b /src/exchange-lib/exchange_api_handle.c
parent310b120d5d8c7b67d8a36c8c7d8c4933ec4ff7f3 (diff)
put curl default options on one place
Diffstat (limited to 'src/exchange-lib/exchange_api_handle.c')
-rw-r--r--src/exchange-lib/exchange_api_handle.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/exchange-lib/exchange_api_handle.c b/src/exchange-lib/exchange_api_handle.c
index 2b5ff18e5..4a3c843d8 100644
--- a/src/exchange-lib/exchange_api_handle.c
+++ b/src/exchange-lib/exchange_api_handle.c
@@ -27,6 +27,7 @@
#include "taler_exchange_service.h"
#include "taler_signatures.h"
#include "exchange_api_handle.h"
+#include "curl_defaults.h"
/**
* Which revision of the Taler protocol is implemented
@@ -1176,7 +1177,7 @@ request_keys (void *cls)
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Requesting keys with URL `%s'.\n",
kr->url);
- eh = curl_easy_init ();
+ eh = TEL_curl_easy_get (kr->url);
GNUNET_assert (CURLE_OK ==
curl_easy_setopt (eh,
CURLOPT_VERBOSE,
@@ -1193,18 +1194,6 @@ request_keys (void *cls)
curl_easy_setopt (eh,
CURLOPT_HEADERDATA,
kr));
- GNUNET_assert (CURLE_OK ==
- curl_easy_setopt (eh,
- CURLOPT_URL,
- kr->url));
- GNUNET_assert (CURLE_OK ==
- curl_easy_setopt (eh,
- CURLOPT_ENCODING,
- "deflate"));
- GNUNET_assert (CURLE_OK ==
- curl_easy_setopt (eh,
- CURLOPT_TCP_FASTOPEN,
- 1L));
kr->job = GNUNET_CURL_job_add (exchange->ctx,
eh,
GNUNET_NO,