|
@@ -277,7 +277,7 @@ class RemoteFilesystem
|
|
if (isset($options['github-token'])) {
|
|
if (isset($options['github-token'])) {
|
|
|
|
|
|
if (preg_match('{^https?://([a-z0-9-]+\.)*github\.com/}', $fileUrl)) {
|
|
if (preg_match('{^https?://([a-z0-9-]+\.)*github\.com/}', $fileUrl)) {
|
|
- $fileUrl .= (false === strpos($fileUrl, '?') ? '?' : '&') . 'access_token='.$options['github-token'];
|
|
+ $options['http']['header'][] = 'Authorization: token '.$options['github-token'];
|
|
}
|
|
}
|
|
unset($options['github-token']);
|
|
unset($options['github-token']);
|
|
}
|
|
}
|