gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-sync] branch master updated: improve curl backwards compatibility


From: gnunet
Subject: [taler-sync] branch master updated: improve curl backwards compatibility, de-duplicate code
Date: Mon, 08 Jan 2024 19:22:15 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository sync.

The following commit(s) were added to refs/heads/master by this push:
     new 17fe587  improve curl backwards compatibility, de-duplicate code
17fe587 is described below

commit 17fe587f71ebaecafaad619b8efc7f977e49d663
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Jan 8 19:22:12 2024 +0100

    improve curl backwards compatibility, de-duplicate code
---
 src/lib/sync_api_curl_defaults.c | 21 ++-------------------
 1 file changed, 2 insertions(+), 19 deletions(-)

diff --git a/src/lib/sync_api_curl_defaults.c b/src/lib/sync_api_curl_defaults.c
index 35c01ba..4c93570 100644
--- a/src/lib/sync_api_curl_defaults.c
+++ b/src/lib/sync_api_curl_defaults.c
@@ -43,25 +43,8 @@ SYNC_curl_easy_get_ (const char *url)
                  curl_easy_setopt (eh,
                                    CURLOPT_URL,
                                    url));
-  GNUNET_assert (CURLE_OK ==
-                 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));
+  TALER_curl_set_secure_redirect_policy (eh,
+                                         url);
   GNUNET_assert (CURLE_OK ==
                  curl_easy_setopt (eh,
                                    CURLOPT_TCP_FASTOPEN,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]