Fix proxy scheme concatenation, fixes #1250
parent
b8a408883c
commit
cd284733ef
|
@ -38,7 +38,7 @@ final class StreamContextFactory
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($proxy)) {
|
if (!empty($proxy)) {
|
||||||
$proxyURL = (isset($proxy['scheme']) ? $proxy['scheme'] : '') . '://';
|
$proxyURL = isset($proxy['scheme']) ? $proxy['scheme'] . '://' : '';
|
||||||
$proxyURL .= isset($proxy['host']) ? $proxy['host'] : '';
|
$proxyURL .= isset($proxy['host']) ? $proxy['host'] : '';
|
||||||
|
|
||||||
if (isset($proxy['port'])) {
|
if (isset($proxy['port'])) {
|
||||||
|
|
Loading…
Reference in New Issue