Fixed an issue with HTTP proxy and PHP 5.4

main
Nikita Baksalyar 12 years ago
parent 344df03253
commit 8f0f1e3aac

@ -70,7 +70,7 @@ final class StreamContextFactory
// Preserve headers if already set in default options
if (isset($defaultOptions['http']['header'])) {
$defaultOptions['http']['header'] .= "Proxy-Authorization: Basic {$auth}\r\n";
$defaultOptions['http']['header'][] = "Proxy-Authorization: Basic {$auth}";
} else {
$options['http']['header'] = "Proxy-Authorization: Basic {$auth}\r\n";
}

Loading…
Cancel
Save