http: treat http-alternates like redirects
[gitweb.git] / http.c
diff --git a/http.c b/http.c
index b99ade5fa83de12a4c86a21c04ec74fb12436c21..a9778bfa447f2afe89af3fe1ad3527d5b8d64791 100644 (file)
--- a/http.c
+++ b/http.c
@@ -581,6 +581,7 @@ static CURL *get_curl_handle(void)
        if (is_transport_allowed("ftps"))
                allowed_protocols |= CURLPROTO_FTPS;
        curl_easy_setopt(result, CURLOPT_REDIR_PROTOCOLS, allowed_protocols);
+       curl_easy_setopt(result, CURLOPT_PROTOCOLS, allowed_protocols);
 #else
        if (transport_restrict_protocols())
                warning("protocol restrictions not applied to curl redirects because\n"