aboutsummaryrefslogtreecommitdiff
path: root/src/net/http
diff options
context:
space:
mode:
author1911860538 <alxps1911@gmail.com>2025-08-15 11:38:57 +0000
committerGopher Robot <gobot@golang.org>2025-08-28 16:10:19 -0700
commitf74ed44ed9be1708d4561e0fa667792ff2707c14 (patch)
tree21554b8697961021edbf86b93e9202a769e30809 /src/net/http
parenta9689d2e0b8eda51da84732e963cbad35f797552 (diff)
downloadgo-f74ed44ed9be1708d4561e0fa667792ff2707c14.tar.xz
net/http/httputil: remove redundant pw.Close() call in DumpRequestOut
pw.Close() is already deferred earlier in DumpRequestOut. Change-Id: Icdc9366c816848ed0bb444022d2aa14e4ceaabac GitHub-Last-Rev: 7c38f9f2b6a9535a9262c2c40c8f1f8754eba972 GitHub-Pull-Request: golang/go#75029 Reviewed-on: https://go-review.googlesource.com/c/go/+/696415 Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Sean Liao <sean@liao.dev> Auto-Submit: Sean Liao <sean@liao.dev>
Diffstat (limited to 'src/net/http')
-rw-r--r--src/net/http/httputil/dump.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/net/http/httputil/dump.go b/src/net/http/httputil/dump.go
index 2edb9bc98d..23918e2ad4 100644
--- a/src/net/http/httputil/dump.go
+++ b/src/net/http/httputil/dump.go
@@ -147,7 +147,6 @@ func DumpRequestOut(req *http.Request, body bool) ([]byte, error) {
req.Body = save
if err != nil {
- pw.Close()
dr.err = err
close(quitReadCh)
return nil, err