[HttpClient] Fixed #33832 NO_PROXY option ignored in NativeHttpClient::request() method
This commit is contained in:
parent
2c2d2ac3a7
commit
e4fb58d1b8
@ -203,7 +203,7 @@ final class NativeHttpClient implements HttpClientInterface, LoggerAwareInterfac
|
|||||||
];
|
];
|
||||||
|
|
||||||
$proxy = self::getProxy($options['proxy'], $url);
|
$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) : [];
|
$noProxy = $noProxy ? preg_split('/[\s,]+/', $noProxy) : [];
|
||||||
|
|
||||||
$resolveRedirect = self::createRedirectResolver($options, $host, $proxy, $noProxy, $info, $onProgress);
|
$resolveRedirect = self::createRedirectResolver($options, $host, $proxy, $noProxy, $info, $onProgress);
|
||||||
|
Reference in New Issue
Block a user