Browse Source

Merge 7a9e52e3fb into 91708ff8e3

pull/667/merge
Algebra8 4 years ago committed by GitHub
parent
commit
c804d9122b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      route.go

2
route.go

@ -255,7 +255,7 @@ func (m headerRegexMatcher) Match(r *http.Request, match *RouteMatch) bool { @@ -255,7 +255,7 @@ func (m headerRegexMatcher) Match(r *http.Request, match *RouteMatch) bool {
// HeadersRegexp accepts a sequence of key/value pairs, where the value has regex
// support. For example:
//
// r := mux.NewRouter()
// r := mux.NewRouter().NewRoute()
// r.HeadersRegexp("Content-Type", "application/(text|json)",
// "X-Requested-With", "XMLHttpRequest")
//

Loading…
Cancel
Save