diff options
Diffstat (limited to 'src/lib/merchant_api_get_orders.c')
-rw-r--r-- | src/lib/merchant_api_get_orders.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/merchant_api_get_orders.c b/src/lib/merchant_api_get_orders.c index 27e5bd1b..92a20614 100644 --- a/src/lib/merchant_api_get_orders.c +++ b/src/lib/merchant_api_get_orders.c @@ -26,6 +26,7 @@ #include <gnunet/gnunet_util_lib.h> #include <gnunet/gnunet_curl_lib.h> #include "taler_merchant_service.h" +#include "merchant_api_curl_defaults.h" #include <taler/taler_json_lib.h> #include <taler/taler_signatures.h> @@ -350,11 +351,7 @@ TALER_MERCHANT_orders_get2 ( GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Requesting URL '%s'\n", ogh->url); - eh = curl_easy_init (); - GNUNET_assert (CURLE_OK == - curl_easy_setopt (eh, - CURLOPT_URL, - ogh->url)); + eh = TALER_MERCHANT_curl_easy_get_ (ogh->url); ogh->job = GNUNET_CURL_job_add (ctx, eh, &handle_get_orders_finished, |