]> Cypherpunks.ru repositories - gostls13.git/commit
net/http: second do not force the Content-Length header if nilled
authorJorropo <jorropo.pgm@gmail.com>
Tue, 16 May 2023 07:19:58 +0000 (09:19 +0200)
committerGopher Robot <gobot@golang.org>
Wed, 24 May 2023 22:39:33 +0000 (22:39 +0000)
commit543e601c118c4bffbeee65e7e9baf79a17ffdfaf
tree9fbc403989819f847522ab335cff4af12ee5ab51
parent79a8997ac5592f11388d9f26ab3fff65ec876dbd
net/http: second do not force the Content-Length header if nilled

This is a second round of CL 469095 which has been fixed after
the issue discovered in the revert CL 495017.

The issue was a missing res.Body.Close() in the newly added test.

Change-Id: Ifd9d8458022e59f4486397443a2862d06383e990
Reviewed-on: https://go-review.googlesource.com/c/go/+/495115
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Jorropo <jorropo.pgm@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
src/net/http/serve_test.go
src/net/http/server.go