Remove changes in StreamContextFactory, refs #5055
parent
2c9326bacb
commit
fc57cc8d7e
|
@ -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'
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue