http: always warn if libcurl version is too old
[gitweb.git] / http.c
diff --git a/http.c b/http.c
index 5cd3ffd67f40e7e377bf688211105c1b966d4d60..034426e746f81a69c387705a0ad93bedb52e8aaa 100644 (file)
--- a/http.c
+++ b/http.c
@@ -583,9 +583,8 @@ static CURL *get_curl_handle(void)
        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"
-                       "your curl version is too old (>= 7.19.4)");
+       warning("protocol restrictions not applied to curl redirects because\n"
+               "your curl version is too old (>= 7.19.4)");
 #endif
 
        if (getenv("GIT_CURL_VERBOSE"))