This commit is contained in:
Jes Cok 2024-02-24 05:30:15 +08:00
parent 111de4d230
commit 503f5e909a
2 changed files with 2 additions and 2 deletions

View File

@ -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 '/'.

View File

@ -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.