webdav: fix ConditionalMatch.MatchETag when resource doesn't exist
Fixes "If-None-Match: *".
This commit is contained in:
@@ -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