1
0
Fork 0
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:
Jordi Boggiano 2012-10-21 18:10:32 +02:00
parent 169bb2d60e
commit 76663cf21e

View file

@ -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'),