summaryrefslogtreecommitdiffhomepage
path: root/caddyhttp/rewrite/rewrite.go
diff options
context:
space:
mode:
Diffstat (limited to 'caddyhttp/rewrite/rewrite.go')
-rw-r--r--caddyhttp/rewrite/rewrite.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/caddyhttp/rewrite/rewrite.go b/caddyhttp/rewrite/rewrite.go
index da086e438..13fb8df53 100644
--- a/caddyhttp/rewrite/rewrite.go
+++ b/caddyhttp/rewrite/rewrite.go
@@ -216,10 +216,7 @@ func (r *ComplexRule) matchExt(rPath string) bool {
}
}
- if mustUse {
- return false
- }
- return true
+ return !mustUse
}
func (r *ComplexRule) regexpMatches(rPath string) []string {