diff options
author | Francis Lavoie <[email protected]> | 2024-12-04 14:01:58 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-04 14:01:58 -0500 |
commit | d0123bd760f6c140f3b935159a55ba64899c84f8 (patch) | |
tree | c56c096a927138c5484792b53d2c66414b1f00ce /modules | |
parent | fb72793269d419b2b37b5f1db8141c63818be514 (diff) | |
download | caddy-d0123bd760f6c140f3b935159a55ba64899c84f8.tar.gz caddy-d0123bd760f6c140f3b935159a55ba64899c84f8.zip |
fileserver: Fix policy `Validate()` oversight (#6727)
Diffstat (limited to 'modules')
-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: |