From e6ec9f0fd701ca82364edb41a454be9745e4be9f Mon Sep 17 00:00:00 2001 From: Basavaraj PB Date: Thu, 26 Feb 2026 11:29:02 +0530 Subject: 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 Auto-Submit: Alan Donovan Reviewed-by: Sean Liao LUCI-TryBot-Result: Go LUCI Reviewed-by: Cherry Mui Reviewed-by: Alan Donovan --- _content/doc/go1.26.md | 2 ++ 1 file changed, 2 insertions(+) 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/) -- cgit v1.3