diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-01-08 16:00:01 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-01-08 16:00:01 +0100 |
commit | be1e89fa1ae4c3ee4aad2a0e54ffb6767e3c98c0 (patch) | |
tree | 856fc87c4a811f6fbef5a4b48f69ed2dd302d928 /src/lib | |
parent | c457a1cdb6bc7f359559ed0b73269a84f4b45b4f (diff) |
fix #8038
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/merchant_api_curl_defaults.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/merchant_api_curl_defaults.c b/src/lib/merchant_api_curl_defaults.c index 34e4aad8..d565e5dd 100644 --- a/src/lib/merchant_api_curl_defaults.c +++ b/src/lib/merchant_api_curl_defaults.c @@ -42,6 +42,17 @@ TALER_MERCHANT_curl_easy_get_ (const char *url) curl_easy_setopt (eh, CURLOPT_FOLLOWLOCATION, 1L)); + if (0 == strcasecmp (url, + "https://")) + GNUNET_assert (CURLE_OK == + curl_easy_setopt (eh, + CURLOPT_REDIR_PROTOCOLS_STR, + "https")); + else + GNUNET_assert (CURLE_OK == + curl_easy_setopt (eh, + CURLOPT_REDIR_PROTOCOLS_STR, + "http,https")); /* Enable compression (using whatever curl likes), see https://curl.se/libcurl/c/CURLOPT_ACCEPT_ENCODING.html */ GNUNET_break (CURLE_OK == |