go/src/net/http
Jorropo 543e601c11 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>
2023-05-24 22:39:33 +00:00
..
cgi net/http/cgi: propagate LD_LIBRARY_PATH on Android 2023-04-26 21:07:34 +00:00
cookiejar net/http: fix spelling issues in comments and tests 2023-05-24 18:48:34 +00:00
fcgi
httptest
httptrace
httputil net/http/httputil: use response controller in reverse proxy 2023-03-17 15:23:38 +00:00
internal
pprof net/http/pprof: adjust URL in package doc 2023-05-24 20:26:47 +00:00
testdata
alpn_test.go
client.go net/http: expose "http: server gave HTTP response to HTTPS client" error 2023-04-07 19:44:49 +00:00
client_test.go net/http: fix spelling issues in comments and tests 2023-05-24 18:48:34 +00:00
clientserver_test.go net/http: eliminate more arbitrary timeouts in tests 2023-03-17 17:21:50 +00:00
clone.go
cookie.go all: add missing periods in comments 2022-11-18 17:59:44 +00:00
cookie_test.go
doc.go net/http: add section headers to package doc 2023-01-30 19:44:49 +00:00
example_filesystem_test.go
example_handle_test.go
example_test.go
export_test.go net/http: wait forever for write results in tests 2023-04-07 18:08:14 +00:00
filetransport.go
filetransport_test.go
fs.go Revert "net/http: FileServer method check + minimal OPTIONS implementation" 2023-04-06 17:39:06 +00:00
fs_test.go all: add String for fs.{FileInfo,DirEntry} implementations 2023-05-04 16:27:35 +00:00
h2_bundle.go net/http: regenerate h2_bundle.go 2023-05-09 13:22:59 +00:00
h2_error.go
h2_error_test.go
header.go
header_test.go
http.go net/http: reduce calls to append in hexEscapeNonASCII to gain a slight performance boost 2023-02-27 22:37:40 +00:00
http_test.go net/http: reduce calls to append in hexEscapeNonASCII to gain a slight performance boost 2023-02-27 22:37:40 +00:00
jar.go
main_test.go net/http: only report the first leak of each test run 2023-04-12 15:45:20 +00:00
method.go
omithttp2.go net/http: in the IdleConnStrsForTesting_h2 helper, omit conns that cannot be reused 2023-03-22 20:51:27 +00:00
proxy_test.go
range_test.go
readrequest_test.go
request.go net/http: let ErrNotSupported match errors.ErrUnsupported 2023-05-10 20:13:04 +00:00
request_test.go net/http: let ErrNotSupported match errors.ErrUnsupported 2023-05-10 20:13:04 +00:00
requestwrite_test.go
response.go
response_test.go
responsecontroller.go net/http: support full-duplex HTTP/1 responses 2023-03-07 22:52:18 +00:00
responsecontroller_test.go net/http: fix a race in TestResponseControllerSetPastReadDeadline 2023-04-07 16:45:25 +00:00
responsewrite_test.go
roundtrip.go net/http, net/internal, net/smtp: add wasip1 2023-04-11 20:54:10 +00:00
roundtrip_js.go net/http: support streaming POST content in wasm 2023-02-15 22:02:37 +00:00
serve_test.go net/http: second do not force the Content-Length header if nilled 2023-05-24 22:39:33 +00:00
server.go net/http: second do not force the Content-Length header if nilled 2023-05-24 22:39:33 +00:00
server_test.go
sniff.go
sniff_test.go
socks_bundle.go all: update vendored golang.org/x/net 2023-04-11 22:42:18 +00:00
status.go
transfer.go all: fix some comments 2023-02-14 16:27:39 +00:00
transfer_test.go
transport.go net/http: check for nil, nil return from DialContext as well as Dial 2023-05-24 21:26:44 +00:00
transport_default_other.go net/http, net/internal, net/smtp: add wasip1 2023-04-11 20:54:10 +00:00
transport_default_wasm.go net/http, net/internal, net/smtp: add wasip1 2023-04-11 20:54:10 +00:00
transport_internal_test.go
transport_test.go net/http: fix spelling issues in comments and tests 2023-05-24 18:48:34 +00:00
triv.go all: replace fmt.Sprintf("%d") with strconv.Itoa 2023-03-31 18:41:24 +00:00