Skip to content
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

[HttpKernel] Do not override max_redirects option in HttpClientKernel #38212

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

dmolineus
Copy link
Contributor

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #38207
License MIT
Doc PR -

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.

@dmolineus
Copy link
Contributor Author

Failing integration test AmqpExtIntegrationTest seems to be unrelated.

@@ -19,6 +19,7 @@
"php": ">=7.1.3",
"symfony/error-handler": "^4.4",
"symfony/event-dispatcher": "^4.4",
"symfony/http-client-contracts": "^4.4",
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed with 1cc8fc2.

@fabpot
Copy link
Member

fabpot commented Sep 17, 2020

Thank you @dmolineus.

@fabpot fabpot merged commit 2f67bf3 into symfony:4.4 Sep 17, 2020
@dmolineus dmolineus deleted the hotfix/issue-38207 branch September 17, 2020 10:06
This was referenced Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants