summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_get_instance.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-11 20:32:19 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-11 20:32:19 +0100
commit49e2e44b09dd845d0922c0acef5ff487b52bf26d (patch)
tree49ec4833067413047c26c5a60e2ccc32deeea9d2 /src/lib/merchant_api_get_instance.c
parent9788501cb9773e618e976ef11ad498e1571050b2 (diff)
downloadmerchant-49e2e44b09dd845d0922c0acef5ff487b52bf26d.tar.gz
merchant-49e2e44b09dd845d0922c0acef5ff487b52bf26d.tar.bz2
merchant-49e2e44b09dd845d0922c0acef5ff487b52bf26d.zip
fix #7123
Diffstat (limited to 'src/lib/merchant_api_get_instance.c')
-rw-r--r--src/lib/merchant_api_get_instance.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/merchant_api_get_instance.c b/src/lib/merchant_api_get_instance.c
index 64ee331e..edf45e97 100644
--- a/src/lib/merchant_api_get_instance.c
+++ b/src/lib/merchant_api_get_instance.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>
@@ -113,11 +114,11 @@ handle_get_instance_finished (void *cls,
GNUNET_JSON_spec_json ("jurisdiction",
&jurisdiction),
TALER_JSON_spec_amount_any ("default_max_wire_fee",
- &default_max_wire_fee),
+ &default_max_wire_fee),
GNUNET_JSON_spec_uint32 ("default_wire_fee_amortization",
&default_wire_fee_amortization),
TALER_JSON_spec_amount_any ("default_max_deposit_fee",
- &default_max_deposit_fee),
+ &default_max_deposit_fee),
TALER_JSON_spec_relative_time ("default_wire_transfer_delay",
&default_wire_transfer_delay),
TALER_JSON_spec_relative_time ("default_pay_delay",
@@ -259,11 +260,7 @@ TALER_MERCHANT_instance_get (struct GNUNET_CURL_Context *ctx,
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Requesting URL '%s'\n",
igh->url);
- eh = curl_easy_init ();
- GNUNET_assert (CURLE_OK ==
- curl_easy_setopt (eh,
- CURLOPT_URL,
- igh->url));
+ eh = TALER_MERCHANT_curl_easy_get_ (igh->url);
igh->job = GNUNET_CURL_job_add (ctx,
eh,
&handle_get_instance_finished,