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
net/http: redirect should requires Location header #51345
Labels
Comments
mengzhuo
changed the title
affected/package: net/http when no redict also err with 302 response missing Location header
net/http: invalid CheckRedirect after missing Location header
Feb 24, 2022
Please fulfill the Go issue template, thanks. |
mengzhuo
added
the
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
label
Feb 24, 2022
After reading the xray#1493 I think the title should be And keeping same logic with 307/308
Kindly cc @neild for comfirm |
mengzhuo
changed the title
net/http: invalid CheckRedirect after missing Location header
net/http: redirect should requires Location header
Feb 24, 2022
mengzhuo
added
the
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
label
Feb 24, 2022
related #49281 |
Thanks. |
mengzhuo
removed
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Feb 25, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When get a http response with status 302 and no Location Header
redirectBehavior
getshouldRedirect
true
https://github.com/golang/go/blob/master/src/net/http/client.go#L738CheckRedirect
It should be:
redirectBehavior
getshouldRedirect
true
CheckRedirect
The text was updated successfully, but these errors were encountered: