-
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
Unclear HTTP redirect check for looping #830
Comments
I seem to understand the |
I am not sure I follow your note, namely "if we are present at "/" it is implied that we don't have a redirect URL to go to". Could you please elaborate? This part of the code is carried forward from the original commit so I am only working off of an assumption of its full intent. The real net effect of the code has been to stop following redirects onto the root of itself. Condition |
I had doubts regarding the redirection part of it but your wonderful explanation cleared it up. Thanks! |
One of the default HTTP redirect checks, located here, is to prevent a redirect onto itself:
There is a discrepancy between a comment and the actual code about whether the path is required or not. I presume that the comment is correct and the code is not, in which case the following patch remediates the issue:
This patch deserves scrutiny from other folks before committing.
The text was updated successfully, but these errors were encountered: