Merge branch 'jk/fix-remote-curl-url-wo-proto'
"git fetch http::/site/path" did not die correctly and segfaulted instead. * jk/fix-remote-curl-url-wo-proto: remote-curl: handle URLs without protocol
This commit is contained in:
2
http.c
2
http.c
@ -723,7 +723,7 @@ static CURL *get_curl_handle(void)
|
||||
* precedence here, as in CURL.
|
||||
*/
|
||||
if (!curl_http_proxy) {
|
||||
if (!strcmp(http_auth.protocol, "https")) {
|
||||
if (http_auth.protocol && !strcmp(http_auth.protocol, "https")) {
|
||||
var_override(&curl_http_proxy, getenv("HTTPS_PROXY"));
|
||||
var_override(&curl_http_proxy, getenv("https_proxy"));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user