[go] net/http/internal/http2: do not silently truncate large trailers

0 views
Skip to first unread message

Nicholas Husin (Gerrit)

unread,
Jul 1, 2026, 6:12:26 PM (3 days ago) Jul 1
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Nicholas Husin, Damien Neil, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com

Nicholas Husin submitted the change

Change information

Commit message:
net/http/internal/http2: do not silently truncate large trailers

HTTP/2 transport currently applies Transport.MaxResponseHeaderBytes
limit to trailer headers. However, due to a missing check, when a server
sends trailers that exceeds the limit, it would silently truncate it
rather than giving an explicit error.
Change-Id: I749fa54447bb1eeb9c822cff6fb4c6416a6a6964
Reviewed-by: Damien Neil <dn...@google.com>
Reviewed-by: Nicholas Husin <hu...@google.com>
Files:
  • M src/net/http/internal/http2/transport.go
  • M src/net/http/internal/http2/transport_test.go
Change size: M
Delta: 2 files changed, 64 insertions(+), 1 deletion(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I749fa54447bb1eeb9c822cff6fb4c6416a6a6964
Gerrit-Change-Number: 796381
Gerrit-PatchSet: 2
Gerrit-Owner: Nicholas Husin <n...@golang.org>
Gerrit-Reviewer: Damien Neil <dn...@google.com>
Gerrit-Reviewer: Nicholas Husin <hu...@google.com>
Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages