]> Cypherpunks repositories - gostls13.git/commit
net/http: test intended behavior in TestClientInsecureTransport
authorDamien Neil <dneil@google.com>
Fri, 7 Mar 2025 01:33:27 +0000 (17:33 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 15 Apr 2025 22:55:28 +0000 (15:55 -0700)
commit2869d55366a55d6a29a166523ac2383d0b2291df
tree60cf7ef0fa78d7f2c0f9cbaae539ac5ab173c2f3
parent64371adcf4f431adc1f6afab4d7e61bb9b5eff72
net/http: test intended behavior in TestClientInsecureTransport

This test wasn't testing the HTTP/2 case, because it didn't
set NextProtos in the tls.Config.

Set "Connection: close" on requests to make sure each request
gets a new connection.

Change-Id: I1ef470e7433a602ce88da7bd7eeec502687ea857
Reviewed-on: https://go-review.googlesource.com/c/go/+/655676
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/net/http/client_test.go