1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00

fileserver: Fix policy Validate() oversight (#6727)

This commit is contained in:
Francis Lavoie 2024-12-04 14:01:58 -05:00 committed by GitHub
parent fb72793269
commit d0123bd760
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -297,6 +297,7 @@ func (m MatchFile) Validate() error {
switch m.TryPolicy {
case "",
tryPolicyFirstExist,
tryPolicyFirstExistFallback,
tryPolicyLargestSize,
tryPolicySmallestSize,
tryPolicyMostRecentlyMod: