Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a51e01

Browse files
minor #35148 [HttpClient] fix typo (nicolas-grekas)
This PR was merged into the 4.3 branch. Discussion ---------- [HttpClient] fix typo | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- 3a25878 [HttpClient] fix typo
2 parents f3d8fd2 + 3a25878 commit 3a51e01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpClient/NativeHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ private static function createRedirectResolver(array $options, string $host, ?ar
340340
});
341341

342342
if (isset($options['normalized_headers']['authorization']) || isset($options['normalized_headers']['cookie'])) {
343-
$redirectHeaders['no_auth'] = array_filter($options['headers'], static function ($h) {
343+
$redirectHeaders['no_auth'] = array_filter($redirectHeaders['no_auth'], static function ($h) {
344344
return 0 !== stripos($h, 'Authorization:') && 0 !== stripos($h, 'Cookie:');
345345
});
346346
}

0 commit comments

Comments
 (0)