1
0
Fork 0

Fix proxy scheme concatenation, fixes #1250

pull/1020/merge
Jordi Boggiano 2012-10-24 12:14:16 +02:00
parent b8a408883c
commit cd284733ef
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ final class StreamContextFactory
}
if (!empty($proxy)) {
$proxyURL = (isset($proxy['scheme']) ? $proxy['scheme'] : '') . '://';
$proxyURL = isset($proxy['scheme']) ? $proxy['scheme'] . '://' : '';
$proxyURL .= isset($proxy['host']) ? $proxy['host'] : '';
if (isset($proxy['port'])) {