aboutsummaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_post_order_refund.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/merchant_api_post_order_refund.c')
-rw-r--r--src/lib/merchant_api_post_order_refund.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/merchant_api_post_order_refund.c b/src/lib/merchant_api_post_order_refund.c
index 0678e3fd..a4b5d62a 100644
--- a/src/lib/merchant_api_post_order_refund.c
+++ b/src/lib/merchant_api_post_order_refund.c
@@ -27,6 +27,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>
@@ -221,8 +222,7 @@ TALER_MERCHANT_post_order_refund (struct GNUNET_CURL_Context *ctx,
GNUNET_JSON_pack_string ("reason",
reason));
GNUNET_assert (NULL != req);
- 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,
@@ -236,10 +236,6 @@ TALER_MERCHANT_post_order_refund (struct GNUNET_CURL_Context *ctx,
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,