aboutsummaryrefslogtreecommitdiff
path: root/_content
diff options
context:
space:
mode:
authorSean Liao <sean@liao.dev>2025-12-15 22:57:26 +0000
committerSean Liao <sean@liao.dev>2025-12-16 09:18:13 -0800
commit0a2b270e99b5503d2eeecbad373198d0fb412b9b (patch)
treed746f8b92c9b3616b44841fb0e9f512a3d4c7247 /_content
parenta359e9d039deadd70ef0bd6f9a4912ee4b0d3e8b (diff)
downloadgo-x-website-0a2b270e99b5503d2eeecbad373198d0fb412b9b.tar.xz
_content/doc/go1.26: add note for http.Client cookie Host change
For golang/go#38988 Change-Id: I5fef28163bccd10a5f7163b2a6fbf0f26a6a6964 Reviewed-on: https://go-review.googlesource.com/c/website/+/730280 Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Damien Neil <dneil@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to '_content')
-rw-r--r--_content/doc/go1.26.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/_content/doc/go1.26.md b/_content/doc/go1.26.md
index be855cf0..cb597911 100644
--- a/_content/doc/go1.26.md
+++ b/_content/doc/go1.26.md
@@ -517,6 +517,10 @@ Most users should continue to use [`Transport.RoundTrip`](/pkg/net/http#Transpor
which manages a pool of connections.
`NewClientConn` is useful for users who need to implement their own connection management.
+[`Client`](/pkg/net/http#Client) now uses and sets cookies scoped to URLs with the host portion matching
+[`Request.Host`](/pkg/net/http#Request.Host) when available.
+Previously, the connection address host was always used.
+
#### [`net/http/httptest`](/pkg/net/http/httptest/)
The HTTP client returned by [`Server.Client`](/pkg/net/http/httptest#Server.Client) will now redirect requests for