aboutsummaryrefslogtreecommitdiff
path: root/_content
diff options
context:
space:
mode:
authorBasavaraj PB <basavarajbankolli76@gmail.com>2026-02-26 11:29:02 +0530
committerGopher Robot <gobot@golang.org>2026-03-06 10:28:47 -0800
commite6ec9f0fd701ca82364edb41a454be9745e4be9f (patch)
tree5049f13ba0fc2a4714bddbaed0aef82514e95f6b /_content
parentad084207b3eb0a8b7705c4d58c67be0c48251bfa (diff)
downloadgo-x-website-e6ec9f0fd701ca82364edb41a454be9745e4be9f.tar.xz
doc/go1.26: document ServeMux trailing slash redirect status change
Document that ServeMux trailing slash redirects now use HTTP status 307 (Temporary Redirect) instead of 301 (Moved Permanently). Fixes #77741. Change-Id: Ie87feb9d20c6b07014a37f8c6ac9b1fa9f538cbc Reviewed-on: https://go-review.googlesource.com/c/website/+/749340 Auto-Submit: Sean Liao <sean@liao.dev> Auto-Submit: Alan Donovan <adonovan@google.com> Reviewed-by: Sean Liao <sean@liao.dev> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to '_content')
-rw-r--r--_content/doc/go1.26.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/_content/doc/go1.26.md b/_content/doc/go1.26.md
index b8e44275..2682ffbf 100644
--- a/_content/doc/go1.26.md
+++ b/_content/doc/go1.26.md
@@ -585,6 +585,8 @@ which manages a pool of connections.
[`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.
+[`ServeMux`](/pkg/net/http#ServeMux) trailing slash redirects now use HTTP status 307
+(Temporary Redirect) instead of 301 (Moved Permanently).
#### [`net/http/httptest`](/pkg/net/http/httptest/)