1
0
Fork 0

Fixed an issue with HTTP proxy and PHP 5.4

pull/1240/head
Nikita Baksalyar 2012-10-20 20:27:46 +05:00
parent 344df03253
commit 8f0f1e3aac
1 changed files with 1 additions and 1 deletions

View File

@ -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";
} }