Skip to content

Commit 44b1099

Browse files
committed
[HttpClient] Fixed #33832 NO_PROXY option ignored in NativeHttpClient::request() method
1 parent 26f4b1d commit 44b1099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NativeHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function request(string $method, string $url, array $options = []): Respo
203203
];
204204

205205
$proxy = self::getProxy($options['proxy'], $url);
206-
$noProxy = $_SERVER['no_proxy'] ?? $_SERVER['NO_PROXY'] ?? '';
206+
$noProxy = $options['no_proxy'] ?? $_SERVER['no_proxy'] ?? $_SERVER['NO_PROXY'] ?? '';
207207
$noProxy = $noProxy ? preg_split('/[\s,]+/', $noProxy) : [];
208208

209209
$resolveRedirect = self::createRedirectResolver($options, $host, $proxy, $noProxy, $info, $onProgress);

0 commit comments

Comments
 (0)