From d0123bd760f6c140f3b935159a55ba64899c84f8 Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Wed, 4 Dec 2024 14:01:58 -0500 Subject: fileserver: Fix policy `Validate()` oversight (#6727) --- modules/caddyhttp/fileserver/matcher.go | 1 + 1 file changed, 1 insertion(+) 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: -- cgit v1.2.3