]> Cypherpunks repositories - gostls13.git/commit
Revert "net/http: do not discard body content when closing it within request handlers"
authorNicholas S. Husin <nsh@golang.org>
Tue, 18 Nov 2025 17:32:44 +0000 (12:32 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 18 Nov 2025 19:07:45 +0000 (11:07 -0800)
commit2cf9d4b62f167cbef01469d625dabefdd783c0e8
treec75ff8ac75423b3fdcd2d02625d30d920ff1dca3
parent4d0658bb0871806a8c5551063d1ef1d205916ceb
Revert "net/http: do not discard body content when closing it within request handlers"

This reverts commit cb0d9980f5721715ebb73dd2e580eaa11c2ddee2.

Reason for revert: the old behavior seems to be relied on by current
users, e.g.
https://github.com/connectrpc/connect-go/blob/cb2e11fb88c9a61804043355a619c12d4a30a1a5/protocol_connect.go#L837.

For #75933

Change-Id: I996280238e5c70a8d760a0b31e3a13c6a44b8616
Reviewed-on: https://go-review.googlesource.com/c/go/+/721761
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Nicholas Husin <nsh@golang.org>
Reviewed-by: Nicholas Husin <husin@google.com>
src/net/http/serve_test.go
src/net/http/server.go
src/net/http/transfer.go