webdav: fix ConditionalMatch.MatchETag when resource doesn't exist

Fixes "If-None-Match: *".
This commit is contained in:
Simon Ser
2025-02-14 16:49:26 +01:00
parent 3cc7466ac9
commit c1bcf21ad4

View File

@@ -55,6 +55,9 @@ func (val ConditionalMatch) ETag() (string, error) {
}
func (val ConditionalMatch) MatchETag(etag string) (bool, error) {
if etag == "" {
return false, nil
}
if val.IsWildcard() {
return true, nil
}