Skip to content

Commit

Permalink
http2: don't log expected errors from writing invalid trailers
Browse files Browse the repository at this point in the history
Change-Id: I1c8af5a1f7539a25d5602a7bc8e15756d3cafa56
Reviewed-on: https://go-review.googlesource.com/c/net/+/653695
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
  • Loading branch information
neild authored and gopherbot committed Feb 28, 2025
1 parent 5f45c77 commit b73e574
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions http2/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2814,6 +2814,8 @@ func testServerWritesTrailers(t *testing.T, withFlush bool) {
w.Header().Set("Trailer", "should not be included; Forbidden by RFC 7230 4.1.2")
return nil
}, func(st *serverTester) {
// Ignore errors from writing invalid trailers.
st.h1server.ErrorLog = log.New(io.Discard, "", 0)
getSlash(st)
st.wantHeaders(wantHeader{
streamID: 1,
Expand Down

0 comments on commit b73e574

Please sign in to comment.