Merge branch 'jc/http-curlver-warnings'
Warning message fix. * jc/http-curlver-warnings: http: give curl version warnings consistently
This commit is contained in:
commit
cd69ec8cde
6
http.c
6
http.c
@ -834,8 +834,7 @@ static CURL *get_curl_handle(void)
|
|||||||
#if LIBCURL_VERSION_NUM >= 0x072c00
|
#if LIBCURL_VERSION_NUM >= 0x072c00
|
||||||
curl_easy_setopt(result, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NO_REVOKE);
|
curl_easy_setopt(result, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NO_REVOKE);
|
||||||
#else
|
#else
|
||||||
warning("CURLSSLOPT_NO_REVOKE not applied to curl SSL options because\n"
|
warning(_("CURLSSLOPT_NO_REVOKE not suported with cURL < 7.44.0"));
|
||||||
"your curl version is too old (< 7.44.0)");
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -908,8 +907,7 @@ static CURL *get_curl_handle(void)
|
|||||||
curl_easy_setopt(result, CURLOPT_PROTOCOLS,
|
curl_easy_setopt(result, CURLOPT_PROTOCOLS,
|
||||||
get_curl_allowed_protocols(-1));
|
get_curl_allowed_protocols(-1));
|
||||||
#else
|
#else
|
||||||
warning("protocol restrictions not applied to curl redirects because\n"
|
warning(_("Protocol restrictions not supported with cURL < 7.19.4"));
|
||||||
"your curl version is too old (>= 7.19.4)");
|
|
||||||
#endif
|
#endif
|
||||||
if (getenv("GIT_CURL_VERBOSE"))
|
if (getenv("GIT_CURL_VERBOSE"))
|
||||||
curl_easy_setopt(result, CURLOPT_VERBOSE, 1L);
|
curl_easy_setopt(result, CURLOPT_VERBOSE, 1L);
|
||||||
|
Loading…
Reference in New Issue
Block a user