4 Commits

Author SHA1 Message Date
Nicholas S. Husin
d90bf6d722 net/http: add Server.MaxHeaderValueCount setting
Implement MaxHeaderValueCount support for both the HTTP/1 and HTTP/2
server. This allows servers who want to support large headers such as
SSO or OIDC cookies (and therefore has to set MaxHeaderBytes to a large
value), to still limit the number of headers that they are willing to
accept.

Also added the usual note for linknamed symbols for
net/textproto.readMIMEHeader, which seems to have been missed
originally.

Release note changes will be added directly in x/website.

For #79936

Change-Id: I600ac6c492f64f9cfa2730836be64dc76a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/795460
Reviewed-by: Nicholas Husin <husin@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2026-07-01 08:35:57 -07:00
Roland Shoemaker
efbecbbb46 crypto/tls: add LocalCertificate to ConnectionState
Adds a new field to ConnectionState, LocalCertificate, which contains
the certificate chain which was presented to the connection peer, if one
was.

Fixes #24673

Change-Id: Iae758fef4a2808e3295324890f4b2f55c71fcc4c
Reviewed-on: https://go-review.googlesource.com/c/go/+/788866
Auto-Submit: Roland Shoemaker <roland@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Bypass: Roland Shoemaker <roland@golang.org>
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
2026-06-10 12:52:57 -07:00
Dmitri Shuralyov
5d2a112176 cmd/api: include baseline goexperiment.* tool tags
There are some exported package APIs that have started out as being
gated behind a GOEXPERIMENT, requiring users to explicitly opt in,
and have since become enabled for all users. This was done by having
their experiment enabled as a baseline, even when GOEXPERIMENT is left
as the empty string.

It's necessary to populate the go/build.Context.ToolTags field for
those APIs to be found by the API check. We can't directly use
build.Context.Default since that only has the ToolTags for the current
platform, so compute ToolTags from buildcfg, the same source that the
go/build package populates the default build context from.
A difference is that the API check always passes the empty GOEXPERIMENT
string to ParseGOEXPERIMENT, ignoring any potential GOEXPERIMENT set in
the environment.

For #79733.
Fixes #79737.

Change-Id: I2c4502c4f5416b4ce0466d6dd6dd030b6fdcf1ca
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest
Reviewed-on: https://go-review.googlesource.com/c/go/+/784980
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
2026-05-29 12:41:08 -07:00
Gopher Robot
029edaa882 api: promote next to go1.27
Change-Id: Ie368ea1442ad3e891dd7a870677f8ec920664db1
Reviewed-on: https://go-review.googlesource.com/c/go/+/784680
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2026-05-28 20:59:51 -07:00