mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +00:00
Avoid following the URL to the authorization that was just created, fixes #1238
This commit is contained in:
parent
169bb2d60e
commit
76663cf21e
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ class GitHub
|
||||||
$contents = JsonFile::parseJson($this->remoteFilesystem->getContents($originUrl, 'https://api.github.com/authorizations', false, array(
|
$contents = JsonFile::parseJson($this->remoteFilesystem->getContents($originUrl, 'https://api.github.com/authorizations', false, array(
|
||||||
'http' => array(
|
'http' => array(
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
|
'follow_location' => false,
|
||||||
'header' => "Content-Type: application/json\r\n",
|
'header' => "Content-Type: application/json\r\n",
|
||||||
'content' => json_encode(array(
|
'content' => json_encode(array(
|
||||||
'scopes' => array('repo'),
|
'scopes' => array('repo'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue