Fixed the "access_token query param" (5b1f314) fix

main
Jasper N. Brouwer 11 years ago
parent f69418427f
commit 4347cb7a55

@ -283,6 +283,8 @@ class RemoteFilesystem
$headers[] = 'Accept-Encoding: gzip';
}
$options = array_replace_recursive($this->options, $additionalOptions);
if ($this->io->hasAuthentication($originUrl)) {
$auth = $this->io->getAuthentication($originUrl);
if ('github.com' === $originUrl && 'x-oauth-basic' === $auth['password']) {
@ -293,8 +295,6 @@ class RemoteFilesystem
}
}
$options = array_replace_recursive($this->options, $additionalOptions);
if (isset($options['http']['header']) && !is_array($options['http']['header'])) {
$options['http']['header'] = explode("\r\n", trim($options['http']['header'], "\r\n"));
}

Loading…
Cancel
Save