1
0
Fork 0

Remove changes in StreamContextFactory, refs #5055

pull/5139/head
Jordi Boggiano 2016-04-01 01:00:48 +01:00
parent 2c9326bacb
commit fc57cc8d7e
2 changed files with 1 additions and 7 deletions

View File

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

View File

@ -129,10 +129,6 @@ final class StreamContextFactory
$options['http']['header'] = self::fixHttpHeaderField($options['http']['header']); $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')) { if (defined('HHVM_VERSION')) {
$phpVersion = 'HHVM ' . HHVM_VERSION; $phpVersion = 'HHVM ' . HHVM_VERSION;
} else { } else {