summaryrefslogtreecommitdiff
path: root/modules/caddyhttp
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-07-15 17:33:47 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-07-15 17:33:47 -0600
commitbdf92ee84efa6b623698450553cb5509f1cfb66d (patch)
treec5bb95a7ebb8bf294c10be3496ab526c69e5876c /modules/caddyhttp
parentf2171812931114dc48a9d27122a8479af8b2c8f3 (diff)
Minor tweaks
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r--modules/caddyhttp/encode/zstd/zstd.go2
-rw-r--r--modules/caddyhttp/fileserver/matcher.go3
2 files changed, 2 insertions, 3 deletions
diff --git a/modules/caddyhttp/encode/zstd/zstd.go b/modules/caddyhttp/encode/zstd/zstd.go
index 1470baf..acebff5 100644
--- a/modules/caddyhttp/encode/zstd/zstd.go
+++ b/modules/caddyhttp/encode/zstd/zstd.go
@@ -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
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