mirror of
https://github.com/golang/net.git
synced 2026-03-31 10:27:08 +09:00
This CL makes Server automatically set certain headers in a response when they can be inferred and have not been explicitly set in a handler. For now, "Date" and "Content-Type" headers are supported. Note that unlike HTTP/1 and HTTP/2, "Content-Length" header is not automatically set. For golang/go#70914 Change-Id: Ie8d64ee0efb10118dfcba7a156f6f6886f565046 Reviewed-on: https://go-review.googlesource.com/c/net/+/746760 Reviewed-by: Nicholas Husin <husin@google.com> Reviewed-by: Damien Neil <dneil@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>