Skip to content

[HttpClient] Don't throw InvalidArgumentException on bad Location header #31834

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

Merged
merged 1 commit into from
Jun 5, 2019

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 4.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #31776
License MIT
Doc PR -

Instead, just stop following redirections and throw a RedirectionExceptionInterface as usual when throwing is not disabled.

@fabpot
Copy link
Member

fabpot commented Jun 5, 2019

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 4acca42 into symfony:4.3 Jun 5, 2019
fabpot added a commit that referenced this pull request Jun 5, 2019
…ocation header (nicolas-grekas)

This PR was merged into the 4.3 branch.

Discussion
----------

[HttpClient] Don't throw InvalidArgumentException on bad Location header

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #31776
| License       | MIT
| Doc PR        | -

Instead, just stop following redirections and throw a `RedirectionExceptionInterface` as usual when throwing is not disabled.

Commits
-------

4acca42 [HttpClient] Don't throw InvalidArgumentException on bad Location header
@nicolas-grekas nicolas-grekas deleted the hc-fix branch June 5, 2019 14:41
@fabpot fabpot mentioned this pull request Jun 6, 2019
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