From 503f5e909aa2d1c378f640cb47bbaed99c9168c8 Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Sat, 24 Feb 2024 05:30:15 +0800 Subject: [PATCH] re5 --- src/net/http/pattern.go | 2 +- src/net/http/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/http/pattern.go b/src/net/http/pattern.go index 642715d91a..09a2699d8f 100644 --- a/src/net/http/pattern.go +++ b/src/net/http/pattern.go @@ -76,7 +76,7 @@ type segment struct { // a literal or a wildcard of the form "{name}", "{name...}", or "{$}". // // METHOD, HOST and PATH are all optional; that is, the string can be "/". -// If METHOD is present, it must be followed by at least one ' ' or '\t'. +// If METHOD is present, it must be followed by at least one space or tab. // Wildcard names must be valid Go identifiers. // The "{$}" and "{name...}" wildcard must occur at the end of PATH. // PATH may end with a '/'. diff --git a/src/net/http/server.go b/src/net/http/server.go index 774ab63af6..7d73cca43f 100644 --- a/src/net/http/server.go +++ b/src/net/http/server.go @@ -2335,7 +2335,7 @@ func RedirectHandler(url string, code int) Handler { // [METHOD ][HOST]/[PATH] // // All three parts are optional; "/" is a valid pattern. -// If METHOD is present, it must be followed by at least one ' ' or '\t'. +// If METHOD is present, it must be followed by at least one space or tab. // // Literal (that is, non-wildcard) parts of a pattern match // the corresponding parts of a request case-sensitively.