summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_wallet_post_order_refund.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/merchant_api_wallet_post_order_refund.c')
-rw-r--r--src/lib/merchant_api_wallet_post_order_refund.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/merchant_api_wallet_post_order_refund.c b/src/lib/merchant_api_wallet_post_order_refund.c
index c09874ed..70af602f 100644
--- a/src/lib/merchant_api_wallet_post_order_refund.c
+++ b/src/lib/merchant_api_wallet_post_order_refund.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>
#include <taler/taler_curl_lib.h>
@@ -381,8 +382,7 @@ TALER_MERCHANT_wallet_post_order_refund (
req = GNUNET_JSON_PACK (
GNUNET_JSON_pack_data_auto ("h_contract",
h_contract_terms));
- eh = curl_easy_init ();
- GNUNET_assert (NULL != eh);
+ eh = TALER_MERCHANT_curl_easy_get_ (orh->url);
if (GNUNET_OK !=
TALER_curl_easy_post (&orh->post_ctx,
eh,
@@ -396,10 +396,6 @@ TALER_MERCHANT_wallet_post_order_refund (
return NULL;
}
json_decref (req);
- GNUNET_assert (CURLE_OK ==
- curl_easy_setopt (eh,
- CURLOPT_URL,
- orh->url));
orh->job = GNUNET_CURL_job_add2 (ctx,
eh,
orh->post_ctx.headers,