Minor tweaks

This commit is contained in:
Matthew Holt 2019-07-15 17:33:47 -06:00
parent f217181293
commit bdf92ee84e
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
3 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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