From fc57cc8d7e4b7beb40b7a58665a5f5765c3a636e Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 1 Apr 2016 01:00:48 +0100 Subject: [PATCH] Remove changes in StreamContextFactory, refs #5055 --- src/Composer/Util/Bitbucket.php | 4 +--- src/Composer/Util/StreamContextFactory.php | 4 ---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Composer/Util/Bitbucket.php b/src/Composer/Util/Bitbucket.php index 8246b3cb1..9e142bacc 100644 --- a/src/Composer/Util/Bitbucket.php +++ b/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', ) )); diff --git a/src/Composer/Util/StreamContextFactory.php b/src/Composer/Util/StreamContextFactory.php index 426eb0273..484145f45 100644 --- a/src/Composer/Util/StreamContextFactory.php +++ b/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 {