Change information
Commit message:
internal/http3: prevent Server handler from writing longer body than declared
Like in HTTP/1 and HTTP/2, this CL changes the Server handler so that
Write will return an error and automatically trim the content being
written, when attempting to write a body content that is longer than
what has been declared in the "Content-Length" header.
For golang/go#70914
Change-Id: I638efb8ec96f926f86c389f3cac79f1b38a5b36b
Files:
- M internal/http3/server.go
- M internal/http3/server_test.go
Change size: M
Delta: 2 files changed, 97 insertions(+), 1 deletion(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +1 by Nicholas Husin, +2 by Damien Neil
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI