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

Skip to content

Reset redirectCount when throwing exception #23199

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 15, 2017
Merged

Reset redirectCount when throwing exception #23199

merged 1 commit into from
Jun 15, 2017

Conversation

hvanoch
Copy link
Contributor

@hvanoch hvanoch commented Jun 15, 2017

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #23197
License MIT

When catching the exception throw when exceeding the redirect limit, all new request which results in a redirect fail. By resetting the redirectCount we can still use the same client instance.

@fabpot
Copy link
Member

fabpot commented Jun 15, 2017

Thank you @hvanoch.

@fabpot fabpot merged commit 83fd578 into symfony:2.7 Jun 15, 2017
fabpot added a commit that referenced this pull request Jun 15, 2017
This PR was merged into the 2.7 branch.

Discussion
----------

Reset redirectCount when throwing exception

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #23197
| License       | MIT

When catching the exception throw when exceeding the redirect limit, all new request which results in a redirect fail. By resetting the redirectCount we can still use the same client instance.

Commits
-------

83fd578 Reset redirectCount when throwing exception
@hvanoch hvanoch deleted the 2.7 branch June 15, 2017 15:02
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.

3 participants