Browse Source

Fix minor mistake in HeadersRegexp doc

pull/667/head
Milad Nasrollahi 4 years ago
parent
commit
7a9e52e3fb
  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