diff options
author | Francis Lavoie <[email protected]> | 2024-12-04 13:35:04 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-04 13:35:04 -0500 |
commit | 2207c7db0d122e8e6fdcbe2a8e2ef43b45487e9a (patch) | |
tree | c56c096a927138c5484792b53d2c66414b1f00ce | |
parent | fb72793269d419b2b37b5f1db8141c63818be514 (diff) | |
download | caddy-fileserver-oversight.tar.gz caddy-fileserver-oversight.zip |
fileserver: Fix policy `Validate()` oversightfileserver-oversight
-rw-r--r-- | modules/caddyhttp/fileserver/matcher.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/caddyhttp/fileserver/matcher.go b/modules/caddyhttp/fileserver/matcher.go index a8b4a3035..2bc665d4f 100644 --- a/modules/caddyhttp/fileserver/matcher.go +++ b/modules/caddyhttp/fileserver/matcher.go @@ -297,6 +297,7 @@ func (m MatchFile) Validate() error { switch m.TryPolicy { case "", tryPolicyFirstExist, + tryPolicyFirstExistFallback, tryPolicyLargestSize, tryPolicySmallestSize, tryPolicyMostRecentlyMod: |