Browse Source

Merge pull request #1625 from jappie/master

Fixed the "access_token query param" (5b1f314) fix
Jordi Boggiano 12 years ago
parent
commit
5454645cf3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Composer/Util/RemoteFilesystem.php

+ 2 - 2
src/Composer/Util/RemoteFilesystem.php

@@ -283,6 +283,8 @@ class RemoteFilesystem
             $headers[] = 'Accept-Encoding: gzip';
         }
 
+        $options = array_replace_recursive($this->options, $additionalOptions);
+
         if ($this->io->hasAuthentication($originUrl)) {
             $auth = $this->io->getAuthentication($originUrl);
             if ('github.com' === $originUrl && 'x-oauth-basic' === $auth['password']) {
@@ -293,8 +295,6 @@ class RemoteFilesystem
             }
         }
 
-        $options = array_replace_recursive($this->options, $additionalOptions);
-
         if (isset($options['http']['header']) && !is_array($options['http']['header'])) {
             $options['http']['header'] = explode("\r\n", trim($options['http']['header'], "\r\n"));
         }