From 76663cf21e7140f75e1cc93d0503f7968985c9d4 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 21 Oct 2012 18:10:32 +0200 Subject: [PATCH] Avoid following the URL to the authorization that was just created, fixes #1238 --- src/Composer/Util/GitHub.php | 1 + 1 file changed, 1 insertion(+) 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'),