diff options
Diffstat (limited to 'src/net/http/csrf.go')
| -rw-r--r-- | src/net/http/csrf.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/http/csrf.go b/src/net/http/csrf.go index d088b9b615..0b71b40389 100644 --- a/src/net/http/csrf.go +++ b/src/net/http/csrf.go @@ -90,6 +90,10 @@ var sentinelHandler Handler = &noopHandler{} // would redirect to a pattern (e.g. after cleaning the path or adding a // trailing slash) are not. // +// AddInsecureBypassPattern panics if the pattern conflicts with one already +// registered, or if the pattern is syntactically invalid (for example, an +// improperly formed wildcard). +// // AddInsecureBypassPattern can be called concurrently with other methods or // request handling, and applies to future requests. func (c *CrossOriginProtection) AddInsecureBypassPattern(pattern string) { |
