From 2207c7db0d122e8e6fdcbe2a8e2ef43b45487e9a Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Wed, 4 Dec 2024 13:35:04 -0500 Subject: fileserver: Fix policy `Validate()` oversight --- 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