From 8ae7a23e03967d170fbd699eaf8e55883b99e94b Mon Sep 17 00:00:00 2001 From: Clint Ryan Date: Tue, 8 Sep 2015 21:31:30 +1000 Subject: [PATCH] Fixed documentation from Issue 16 --- route.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/route.go b/route.go index e81723e..24fd975 100644 --- a/route.go +++ b/route.go @@ -200,15 +200,7 @@ func (m headerMatcher) Match(r *http.Request, match *RouteMatch) bool { // "X-Requested-With", "XMLHttpRequest") // // The above route will only match if both request header values match. -// Alternatively, you can provide a regular expression and match the header as follows: -// -// r.Headers("Content-Type", "application/(text|json)", -// "X-Requested-With", "XMLHttpRequest") -// -// The above route will the same as the previous example, with the addition of matching -// application/text as well. -// -// It the value is an empty string, it will match any value if the key is set. +// If the value is an empty string, it will match any value if the key is set. func (r *Route) Headers(pairs ...string) *Route { if r.err == nil { var headers map[string]string