[HttpClient] Fixed #33832 NO_PROXY option ignored in NativeHttpClient::request() method

This commit is contained in:
Eric Grimois 2019-10-04 17:43:55 +02:00
parent 2c2d2ac3a7
commit e4fb58d1b8
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ final class NativeHttpClient implements HttpClientInterface, LoggerAwareInterfac
];
$proxy = self::getProxy($options['proxy'], $url);
$noProxy = $_SERVER['no_proxy'] ?? $_SERVER['NO_PROXY'] ?? '';
$noProxy = $options['no_proxy'] ?? $_SERVER['no_proxy'] ?? $_SERVER['NO_PROXY'] ?? '';
$noProxy = $noProxy ? preg_split('/[\s,]+/', $noProxy) : [];
$resolveRedirect = self::createRedirectResolver($options, $host, $proxy, $noProxy, $info, $onProgress);