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: server responds with Transfer-Encoding: identity #49194
Comments
Change https://golang.org/cl/359176 mentions this issue: |
@gopherbot Please open backport issues for 1.16 and 1.17 |
Backport issue(s) opened: #49567 (for 1.16), #49568 (for 1.17). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
Change https://golang.org/cl/368086 mentions this issue: |
Change https://golang.org/cl/368087 mentions this issue: |
…tity in responses Server handlers may set a "Transfer-Encoding: identity" header on responses to disable chunking, but this header should not be sent on the wire. For #49194. Fixes #49568. Change-Id: I46a9e3b8ff9d93edd7d1c34d264fc309fa322ad5 Reviewed-on: https://go-review.googlesource.com/c/go/+/359176 Trust: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> (cherry picked from commit b69b2f6) Reviewed-on: https://go-review.googlesource.com/c/go/+/368087 Reviewed-by: Michael Knyszek <mknyszek@google.com>
…tity in responses Server handlers may set a "Transfer-Encoding: identity" header on responses to disable chunking, but this header should not be sent on the wire. For #49194. Fixes #49567. Change-Id: I46a9e3b8ff9d93edd7d1c34d264fc309fa322ad5 Reviewed-on: https://go-review.googlesource.com/c/go/+/359176 Trust: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> (cherry picked from commit b69b2f6) Reviewed-on: https://go-review.googlesource.com/c/go/+/368086 Reviewed-by: Michael Knyszek <mknyszek@google.com>
I got
|
What is the value of |
The
net/http
server permits setting aTransfer-Encoding: identity
header to disable chunked response writes. As of https://golang.org/cl/231418, thenet/http
client rejects responses withTransfer-Encoding: identity
, resulting in cases where a Go client cannot talk to a Go server.Example case:
The server should remove the
Transfer-Encoding: identity
header from the response (while still disabling chunking).Related: The server should treat any encoding other than "identity" or "chunked" as an error. https://golang.org/issue/38867
The text was updated successfully, but these errors were encountered: