diff --git a/route.go b/route.go index cd85f4b3..6bdcca4f 100644 --- a/route.go +++ b/route.go @@ -268,6 +268,7 @@ func (m headerRegexMatcher) Match(r *http.Request, match *RouteMatch) bool { // r := mux.NewRouter().NewRoute() // r.HeadersRegexp("Content-Type", "application/(text|json)", // "X-Requested-With", "XMLHttpRequest") + // // The above route will only match if both the request header matches both regular expressions. // If the value is an empty string, it will match any value if the key is set.