10000 bug #50728 [HttpClient] Explicitly exclude CURLOPT_POSTREDIR (nicolas… · symfony/symfony@666b595 · GitHub
[go: up one dir, main page]

Skip to content

Commit 666b595

Browse files
committed
bug #50728 [HttpClient] Explicitly exclude CURLOPT_POSTREDIR (nicolas-grekas)
This PR was merged into the 5.4 branch. Discussion ---------- [HttpClient] Explicitly exclude CURLOPT_POSTREDIR | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | #50520 | License | MIT | Doc PR | - Commits ------- c90e20f [HttpClient] Explicitly exclude CURLOPT_POSTREDIR
2 parents d048b8a + c90e20f commit 666b595

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/HttpClient/CurlHttpClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ private function validateExtraCurlOptions(array $options): void
469469
\CURLOPT_TIMEOUT_MS => 'max_duration',
470470
\CURLOPT_TIMEOUT => 'max_duration',
471471
\CURLOPT_MAXREDIRS => 'max_redirects',
472+
\CURLOPT_POSTREDIR => 'max_redirects',
472473
\CURLOPT_PROXY => 'proxy',
473474
\CURLOPT_NOPROXY => 'no_proxy',
474475
\CURLOPT_SSL_VERIFYPEER => 'verify_peer',

0 commit comments

Comments
 (0)
0