-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Pass response to TooManyRedirectsException #2660
Pass response to TooManyRedirectsException #2660
Conversation
75b2b3a
to
704d578
Compare
704d578
to
4d05992
Compare
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.
This PR extracts a non-breaking change from #2589, for 7.x. 👍
Hi! I saw the comment from @Tobion ..
but I wonder.. when you have too-many-redirects.. it most probably mean you also have many-responses.. so which response out of these should be included to the exception? Why only the last one? |
The main reason I used the last response is because that's the one available when the exception is thrown. I suppose it gives some context to what's happening, but perhaps it isn't providing much value? If this causes more confusion than it is helpful, and there's a decision not to make the response mandatory, perhaps this idea should be abandoned? (happy to close both PRs if that's the case?) |
I am open to the discussion as well.. let's leave this open.. It's just the reason why I am not 100% sure about this. |
4d05992
to
a7fc278
Compare
What is the status of this PR? |
I think it just needs to be rebased on master? |
a7fc278
to
cf20e10
Compare
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.
I think this looks good. Thank you
Fixed
TooManyRedirectsException
now has response