mirror of https://github.com/golang/go.git
re5
This commit is contained in:
parent
111de4d230
commit
503f5e909a
|
|
@ -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 '/'.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue