From: Damien Neil Date: Mon, 4 Nov 2024 22:31:30 +0000 (-0800) Subject: net/http: handle new HTTP/2 error for 1xx limit exceeded X-Git-Tag: go1.24rc1~472 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=067d58b53433885124a5f46b381a0378d7aec35d;p=gostls13.git net/http: handle new HTTP/2 error for 1xx limit exceeded CL 615295 changed the error message produced by the HTTP/2 implementation when a server sends more 1xx headers than expected. Update a test that checks for this error. For #65035 Change-Id: I57e22f6a880412e3a448e58693127540806d5ddb Reviewed-on: https://go-review.googlesource.com/c/go/+/625195 Reviewed-by: David Chase Reviewed-by: Brad Fitzpatrick LUCI-TryBot-Result: Go LUCI --- diff --git a/src/net/http/transport_test.go b/src/net/http/transport_test.go index 9892fcaae5..2fc18c5903 100644 --- a/src/net/http/transport_test.go +++ b/src/net/http/transport_test.go @@ -3278,6 +3278,7 @@ func testTransportLimits1xxResponses(t *testing.T, mode testMode) { for _, want := range []string{ "response headers exceeded", "too many 1xx", + "header list too large", } { if strings.Contains(err.Error(), want) { return