internal/http3: delete invalid Content-Length if declared in server handler Following our HTTP/1 and HTTP/2 server implementations, when a Content-Length header is set to an invalid value in a server handler, it should be stripped. Also change responseWriter.bodyLenLeft to be int64, to avoid possible overflow shenanigan on 32-bit systems. For golang/go#70914 Change-Id: I76174d81e7b5993b62a32235ba5008f76a6a6964 Reviewed-on: https://go-review.googlesource.com/c/net/+/813560 Reviewed-by: Nicholas Husin <husin@google.com> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Damien Neil <dneil@google.com>
This repository holds supplementary Go networking packages.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.
The git repository is https://go.googlesource.com/net.
The main issue tracker for the net repository is located at https://go.dev/issues. Prefix your issue with “x/net:” in the subject line, so it is easy to find.