Browse Source

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

Jordi Boggiano 12 years ago
parent
commit
76663cf21e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Composer/Util/GitHub.php

+ 1 - 0
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'),