-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel] Do not override max_redirects option in HttpClientKernel #38212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Failing integration test |
@@ -19,6 +19,7 @@ | |||
"php": ">=7.1.3", | |||
"symfony/error-handler": "^4.4", | |||
"symfony/event-dispatcher": "^4.4", | |||
"symfony/http-client-contracts": "^4.4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Constraint is wrong here, should be ^1.1|^2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with 1cc8fc2.
1cc8fc2
to
981a11b
Compare
Thank you @dmolineus. |
As proposed by @nicolas-grekas this pull request removes the
max_redirects
setting in the\Symfony\Component\HttpKernel\HttpClientKernel::handle
method.It solves the issue that requests made by the
\Symfony\Component\HttpClient\CachingHttpClient
wouldn't follow redirects as described in the linked issue.