Remove changes in StreamContextFactory, refs #5055

main
Jordi Boggiano 8 years ago
parent 2c9326bacb
commit fc57cc8d7e

@ -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',
)
));

@ -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 {

Loading…
Cancel
Save