diff options
Diffstat (limited to 'src/lib/merchant_api_patch_product.c')
-rw-r--r-- | src/lib/merchant_api_patch_product.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/merchant_api_patch_product.c b/src/lib/merchant_api_patch_product.c index bec9f92d..200c0a50 100644 --- a/src/lib/merchant_api_patch_product.c +++ b/src/lib/merchant_api_patch_product.c @@ -28,6 +28,7 @@ #include <microhttpd.h> /* just for HTTP status codes */ #include <gnunet/gnunet_util_lib.h> #include "taler_merchant_service.h" +#include "merchant_api_curl_defaults.h" #include <taler/taler_json_lib.h> #include <taler/taler_curl_lib.h> @@ -223,8 +224,7 @@ TALER_MERCHANT_product_patch ( { CURL *eh; - eh = curl_easy_init (); - GNUNET_assert (NULL != eh); + eh = TALER_MERCHANT_curl_easy_get_ (pph->url); if (GNUNET_OK != TALER_curl_easy_post (&pph->post_ctx, eh, @@ -236,11 +236,7 @@ TALER_MERCHANT_product_patch ( GNUNET_free (pph); return NULL; } - json_decref (req_obj); - GNUNET_assert (CURLE_OK == curl_easy_setopt (eh, - CURLOPT_URL, - pph->url)); GNUNET_assert (CURLE_OK == curl_easy_setopt (eh, CURLOPT_CUSTOMREQUEST, |