From bdf92ee84efa6b623698450553cb5509f1cfb66d Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 15 Jul 2019 17:33:47 -0600 Subject: Minor tweaks --- modules/caddyhttp/fileserver/matcher.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/caddyhttp/fileserver/matcher.go') diff --git a/modules/caddyhttp/fileserver/matcher.go b/modules/caddyhttp/fileserver/matcher.go index 85081ea..17d5c11 100644 --- a/modules/caddyhttp/fileserver/matcher.go +++ b/modules/caddyhttp/fileserver/matcher.go @@ -76,9 +76,8 @@ func (m MatchFile) Match(r *http.Request) bool { if matched { repl.Set("http.matchers.file.relative", rel) repl.Set("http.matchers.file.absolute", abs) - return true } - return false + return matched } // selectFile chooses a file according to m.TryPolicy by appending -- cgit v1.2.3