Fixed an issue with HTTP proxy and PHP 5.4
parent
344df03253
commit
8f0f1e3aac
|
@ -70,7 +70,7 @@ final class StreamContextFactory
|
||||||
|
|
||||||
// Preserve headers if already set in default options
|
// Preserve headers if already set in default options
|
||||||
if (isset($defaultOptions['http']['header'])) {
|
if (isset($defaultOptions['http']['header'])) {
|
||||||
$defaultOptions['http']['header'] .= "Proxy-Authorization: Basic {$auth}\r\n";
|
$defaultOptions['http']['header'][] = "Proxy-Authorization: Basic {$auth}";
|
||||||
} else {
|
} else {
|
||||||
$options['http']['header'] = "Proxy-Authorization: Basic {$auth}\r\n";
|
$options['http']['header'] = "Proxy-Authorization: Basic {$auth}\r\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue