aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp
diff options
context:
space:
mode:
authorFrancis Lavoie <[email protected]>2024-12-04 14:01:58 -0500
committerGitHub <[email protected]>2024-12-04 14:01:58 -0500
commitd0123bd760f6c140f3b935159a55ba64899c84f8 (patch)
treec56c096a927138c5484792b53d2c66414b1f00ce /modules/caddyhttp
parentfb72793269d419b2b37b5f1db8141c63818be514 (diff)
downloadcaddy-d0123bd760f6c140f3b935159a55ba64899c84f8.tar.gz
caddy-d0123bd760f6c140f3b935159a55ba64899c84f8.zip
fileserver: Fix policy `Validate()` oversight (#6727)
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r--modules/caddyhttp/fileserver/matcher.go1
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: