1
0
Fork 0

Avoid following the URL to the authorization that was just created, fixes #1238

pull/1238/merge
Jordi Boggiano 2012-10-21 18:10:32 +02:00
parent 169bb2d60e
commit 76663cf21e
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ class GitHub
$contents = JsonFile::parseJson($this->remoteFilesystem->getContents($originUrl, 'https://api.github.com/authorizations', false, array(
'http' => array(
'method' => 'POST',
'follow_location' => false,
'header' => "Content-Type: application/json\r\n",
'content' => json_encode(array(
'scopes' => array('repo'),