-
Notifications
You must be signed in to change notification settings - Fork 18k
net/http: bad handling of HEAD requests with a body [1.18 backport] #56323
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
Comments
Change https://go.dev/cl/457275 mentions this issue: |
Change https://go.dev/cl/457416 mentions this issue: |
RFC 7231 permits HEAD requests to contain a body, although it does state there are no defined semantics for payloads of HEAD requests and that some servers may reject HEAD requests with a payload. Accept HEAD requests with a body. Test is in net/http CL 418614. For golang/go#53960. For golang/go#56323. Change-Id: I946d3ec796054c3908beb8a69cc78aa51c04c972 Reviewed-on: https://go-review.googlesource.com/c/net/+/418634 Run-TryBot: Damien Neil <dneil@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> (cherry picked from commit f8f703f) Reviewed-on: https://go-review.googlesource.com/c/net/+/457416 Reviewed-by: Than McIntosh <thanm@google.com>
Change https://go.dev/cl/457596 mentions this issue: |
Closed by merging d17cf56 to release-branch.go1.18. |
…214163811-6143a133e5c9 Update x/net to include the fix for #53960. For #53960 For #56323 Change-Id: I825212ecdf7bf2f52c2fda1faf1739b593063653 Reviewed-on: https://go-review.googlesource.com/c/go/+/457596 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Run-TryBot: Damien Neil <dneil@google.com>
The backport for the HTTP/1 fix was never merged, thanks to none of us noticing that Gopherbot had prematurely closed this issue (#29599). Since there won't be another 1.18 minor release, this is unfortunate but there's not much to be done about that at this point. |
This is a by-hand backport request to 1.18 for #53960.
We approved the #56154 (1.19 backport today) and by default backports target the last two releases, so this backport is also approved.
The text was updated successfully, but these errors were encountered: