Change information
Commit message:
internal/http3: return error when Write is used after status 304 is set
In our HTTP/1 and HTTP/2 implementations, calling Write in a server
handler after WriteHeader has been called with status 304 will return an
http.ErrBodyNotAllowed error. This change adds the same behavior for the
HTTP/3 server.
For golang/go#70914
Change-Id: I6be926412d51217a8b88b2ad4ce79935dd3e7af7
Files:
- M internal/http3/server.go
- M internal/http3/server_test.go
Change size: S
Delta: 2 files changed, 24 insertions(+), 0 deletions(-)
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