Fix issue downloading from codeload.github.com when using basic-auth for github, fixes #12126
parent
a01ab9bbca
commit
57e9795455
|
@ -75,7 +75,7 @@ class Url
|
||||||
$origin .= ':'.$port;
|
$origin .= ':'.$port;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strpos($origin, '.github.com') === (strlen($origin) - 11)) {
|
if (str_ends_with($origin, '.github.com') && $origin !== 'codeload.github.com') {
|
||||||
return 'github.com';
|
return 'github.com';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue