From 8f0f1e3aac806e4bf8537e6d719e59fedd5b92ad Mon Sep 17 00:00:00 2001 From: Nikita Baksalyar Date: Sat, 20 Oct 2012 20:27:46 +0500 Subject: [PATCH] Fixed an issue with HTTP proxy and PHP 5.4 --- src/Composer/Util/StreamContextFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Util/StreamContextFactory.php b/src/Composer/Util/StreamContextFactory.php index 382d7b932..de2de1d58 100644 --- a/src/Composer/Util/StreamContextFactory.php +++ b/src/Composer/Util/StreamContextFactory.php @@ -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"; }