mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-26 16:52:40 -04:00
Minor tweaks
This commit is contained in:
@@ -27,7 +27,7 @@ func init() {
|
||||
})
|
||||
}
|
||||
|
||||
// Zstd can create zstd encoders.
|
||||
// Zstd can create Zstandard encoders.
|
||||
type Zstd struct{}
|
||||
|
||||
// AcceptEncoding returns the name of the encoding as
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user