webdav: fix ConditionalMatch.MatchETag when resource doesn't exist
Fixes "If-None-Match: *".
This commit is contained in:
1 parent
3cc7466ac9
commit
c1bcf21ad4
1 file changed
+3
@@ -55,6 +55,9 @@ func (val ConditionalMatch) ETag() (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (val ConditionalMatch) MatchETag(etag string) (bool, error) {
|
func (val ConditionalMatch) MatchETag(etag string) (bool, error) {
|
||||||
|
if etag == "" {
|
||||||
|
return false, nil
|
||||||
|
}
|
||||||
if val.IsWildcard() {
|
if val.IsWildcard() {
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user