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 {