Skip to content
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: regression in client redirect logic #18570

Closed
dsnet opened this issue Jan 9, 2017 · 1 comment
Closed

net/http: regression in client redirect logic #18570

dsnet opened this issue Jan 9, 2017 · 1 comment
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@dsnet
Copy link
Member

dsnet commented Jan 9, 2017

Commit 7db996e alters the behavior of redirects with the HEAD method unnecessarily.

The logic in Go1.7 had the following properties:

The logic in Go1.8 has the following properties:

For backwards compatibility reasons, we should keep redirecting HEAD as HEAD. There is no harm in preserving this old behavior since the RFC doesn't specify that methods must be set to GET for 301, 302, and 303 redirect.

Reproducer: https://play.golang.org/p/kKuGNRjHV9

\cc @bradfitz @odeke-em

@dsnet dsnet added the NeedsFix The path to resolution is known, but the work has not been done. label Jan 9, 2017
@dsnet dsnet added this to the Go1.8 milestone Jan 9, 2017
@dsnet dsnet self-assigned this Jan 9, 2017
@gopherbot
Copy link

CL https://golang.org/cl/34981 mentions this issue.

@golang golang locked and limited conversation to collaborators Jan 9, 2018
@rsc rsc unassigned dsnet Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

2 participants