diff --git a/src/Composer/Util/GitHub.php b/src/Composer/Util/GitHub.php index bca81178c..ba5fcd351 100644 --- a/src/Composer/Util/GitHub.php +++ b/src/Composer/Util/GitHub.php @@ -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'),