aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFrancis Lavoie <[email protected]>2024-12-04 13:35:04 -0500
committerGitHub <[email protected]>2024-12-04 13:35:04 -0500
commit2207c7db0d122e8e6fdcbe2a8e2ef43b45487e9a (patch)
treec56c096a927138c5484792b53d2c66414b1f00ce
parentfb72793269d419b2b37b5f1db8141c63818be514 (diff)
downloadcaddy-fileserver-oversight.tar.gz
caddy-fileserver-oversight.zip
fileserver: Fix policy `Validate()` oversightfileserver-oversight
-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: