Skip to content
Snippets Groups Projects
Commit ed413047 authored by Robin Appelman's avatar Robin Appelman
Browse files

Dav: update etag in filecache when doing a PROPSET

parent c61c98cb
Branches
No related tags found
No related merge requests found
......@@ -154,7 +154,9 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
}
}
else {
if( strcmp( $propertyName, self::LASTMODIFIED_PROPERTYNAME) === 0 ) {
if( strcmp( $propertyName, self::GETETAG_PROPERTYNAME) === 0 ) {
\OC\Files\Filesystem::putFileInfo($this->path, array('etag'=> $propertyValue));
} elseif( strcmp( $propertyName, self::LASTMODIFIED_PROPERTYNAME) === 0 ) {
$this->touch($propertyValue);
} else {
if(!array_key_exists( $propertyName, $existing )) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment