summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_post_orders.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/merchant_api_post_orders.c')
-rw-r--r--src/lib/merchant_api_post_orders.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/merchant_api_post_orders.c b/src/lib/merchant_api_post_orders.c
index 8cd9cbdd..430ddcdd 100644
--- a/src/lib/merchant_api_post_orders.c
+++ b/src/lib/merchant_api_post_orders.c
@@ -29,6 +29,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>
@@ -327,8 +328,7 @@ TALER_MERCHANT_orders_post2 (
"create_token",
json_boolean (create_token)));
}
- eh = curl_easy_init ();
- GNUNET_assert (NULL != eh);
+ eh = TALER_MERCHANT_curl_easy_get_ (po->url);
if (GNUNET_OK !=
TALER_curl_easy_post (&po->post_ctx,
eh,
@@ -341,10 +341,6 @@ TALER_MERCHANT_orders_post2 (
return NULL;
}
json_decref (req);
- GNUNET_assert (CURLE_OK ==
- curl_easy_setopt (eh,
- CURLOPT_URL,
- po->url));
po->job = GNUNET_CURL_job_add2 (ctx,
eh,
po->post_ctx.headers,