1
0
Fork 0

Fix issue downloading from codeload.github.com when using basic-auth for github, fixes #12126

pull/12143/head
Jordi Boggiano 2024-10-02 16:13:01 +02:00
parent a01ab9bbca
commit 57e9795455
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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';
} }