Merge pull request #14684 from nextcloud/long-etag-dav
handle long etags from dav external storage
This commit is contained in:
commit
f87bab8ce2
|
@ -726,7 +726,11 @@ class DAV extends Common {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (isset($response['{DAV:}getetag'])) {
|
if (isset($response['{DAV:}getetag'])) {
|
||||||
return trim($response['{DAV:}getetag'], '"');
|
$etag = trim($response['{DAV:}getetag'], '"');
|
||||||
|
if (strlen($etag) > 40) {
|
||||||
|
$etag = md5($etag);
|
||||||
|
}
|
||||||
|
return $etag;
|
||||||
}
|
}
|
||||||
return parent::getEtag($path);
|
return parent::getEtag($path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue