[go] net/http/internal/http2: reject STREAM_ENDED + Content-Length request

1 view
Skip to first unread message

Gopher Robot (Gerrit)

unread,
May 13, 2026, 4:05:23 PM (3 days ago) May 13
to Brad Fitzpatrick, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Damien Neil, Nicholas Husin, Nicholas Husin, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
net/http/internal/http2: reject STREAM_ENDED + Content-Length request

We silently accepted HEADERS with END_STREAM and non-zero
"content-length" header set, meaning no DATA frames will follow.

The Handler saw ContentLength == 0 and EOF instead of rejecting the
malformed request.
Change-Id: I01e3ec3bddc4cc6c43f8bcdcfa40b0dd7d9d7f55
Reviewed-by: Nicholas Husin <n...@golang.org>
Reviewed-by: Damien Neil <dn...@google.com>
Auto-Submit: Damien Neil <dn...@google.com>
Reviewed-by: Nicholas Husin <hu...@google.com>
Files:
  • M src/net/http/internal/http2/server.go
  • M src/net/http/internal/http2/server_test.go
Change size: S
Delta: 2 files changed, 25 insertions(+), 7 deletions(-)
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: I01e3ec3bddc4cc6c43f8bcdcfa40b0dd7d9d7f55
Gerrit-Change-Number: 777180
Gerrit-PatchSet: 2
Gerrit-Owner: Brad Fitzpatrick <brad...@golang.org>
Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
Gerrit-Reviewer: Damien Neil <dn...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
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