Simplify conditional
This commit is contained in:
parent
d5b3eace4a
commit
adfa6d398e
1 changed files with 1 additions and 3 deletions
|
@ -111,9 +111,7 @@ func customHeadersMiddleware(next http.Handler) http.Handler {
|
||||||
var matches bool
|
var matches bool
|
||||||
|
|
||||||
if configEntry.UsesRegex() {
|
if configEntry.UsesRegex() {
|
||||||
if configEntry.CompiledRegex.MatchString(r.URL.Path) {
|
matches = configEntry.CompiledRegex.MatchString(r.URL.Path)
|
||||||
matches = true
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
matches =
|
matches =
|
||||||
// Check if the file extension matches.
|
// Check if the file extension matches.
|
||||||
|
|
Loading…
Reference in a new issue