Browse Source

Remove changes in StreamContextFactory, refs #5055

Jordi Boggiano 9 years ago
parent
commit
fc57cc8d7e
2 changed files with 1 additions and 7 deletions
  1. 1 3
      src/Composer/Util/Bitbucket.php
  2. 0 4
      src/Composer/Util/StreamContextFactory.php

+ 1 - 3
src/Composer/Util/Bitbucket.php

@@ -87,9 +87,7 @@ class Bitbucket
                 'retry-auth-failure' => false,
                 'http' => array(
                     'method' => 'POST',
-                    'content' => array(
-                        'grant_type' => 'client_credentials'
-                    )
+                    'content' => 'grant_type=client_credentials',
                 )
             ));
 

+ 0 - 4
src/Composer/Util/StreamContextFactory.php

@@ -129,10 +129,6 @@ final class StreamContextFactory
             $options['http']['header'] = self::fixHttpHeaderField($options['http']['header']);
         }
 
-        if (isset($options['http']['content']) && (is_array($options['http']['content']) || is_object($options['http']['content']))) {
-            $options['http']['content'] = http_build_query($options['http']['content']);
-        }
-
         if (defined('HHVM_VERSION')) {
             $phpVersion = 'HHVM ' . HHVM_VERSION;
         } else {