[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-sync] 01/02: fix #8038
From: |
gnunet |
Subject: |
[taler-sync] 01/02: fix #8038 |
Date: |
Mon, 08 Jan 2024 16:01:29 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository sync.
commit d2545a8538cb34ea6dce451ea975001cd0afaaf7
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Jan 8 16:00:08 2024 +0100
fix #8038
---
src/lib/sync_api_curl_defaults.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/src/lib/sync_api_curl_defaults.c b/src/lib/sync_api_curl_defaults.c
index 9176135..35c01ba 100644
--- a/src/lib/sync_api_curl_defaults.c
+++ b/src/lib/sync_api_curl_defaults.c
@@ -47,6 +47,21 @@ SYNC_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"));
+ GNUNET_assert (CURLE_OK ==
+ curl_easy_setopt (eh,
+ CURLOPT_MAXREDIRS,
+ 5L));
GNUNET_assert (CURLE_OK ==
curl_easy_setopt (eh,
CURLOPT_TCP_FASTOPEN,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.