Skip to content

Commit

Permalink
fileserver: Fix policy Validate() oversight (#6727)
Browse files Browse the repository at this point in the history
  • Loading branch information
francislavoie authored Dec 4, 2024
1 parent fb72793 commit d0123bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/caddyhttp/fileserver/matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ func (m MatchFile) Validate() error {
switch m.TryPolicy {
case "",
tryPolicyFirstExist,
tryPolicyFirstExistFallback,
tryPolicyLargestSize,
tryPolicySmallestSize,
tryPolicyMostRecentlyMod:
Expand Down

0 comments on commit d0123bd

Please sign in to comment.