diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-02-10 11:44:34 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-02-11 09:34:03 +0100 |
commit | 2644003bf1f82eb812981d27237ec0ce4e026604 (patch) | |
tree | d1232c24693e26abda3ecd324e4ed2b0040e6d51 /lib/connector | |
parent | d2332f60f31600641189f03bdecaa82a0f889da5 (diff) | |
download | nextcloud-server-2644003bf1f82eb812981d27237ec0ce4e026604.tar.gz nextcloud-server-2644003bf1f82eb812981d27237ec0ce4e026604.zip |
send back 'X-OC-MTime: accepted' when X-OC-MTime was applied
Diffstat (limited to 'lib/connector')
-rw-r--r-- | lib/connector/sabre/file.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/connector/sabre/file.php b/lib/connector/sabre/file.php index 63c581f30c9..279615b9237 100644 --- a/lib/connector/sabre/file.php +++ b/lib/connector/sabre/file.php @@ -56,7 +56,9 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D //allow sync clients to send the mtime along in a header $mtime = OC_Request::hasModificationTime(); if ($mtime !== false) { - \OC\Files\Filesystem::touch($this->path,$mtime); + if(\OC\Files\Filesystem::touch($this->path, $mtime)) { + header('X-OC-MTime: accepted'); + } } return OC_Connector_Sabre_Node::getETagPropertyForPath($this->path); |