send back 'X-OC-MTime: accepted' when X-OC-MTime was applied
This commit is contained in:
parent
d2332f60f3
commit
2644003bf1
|
@ -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
|
//allow sync clients to send the mtime along in a header
|
||||||
$mtime = OC_Request::hasModificationTime();
|
$mtime = OC_Request::hasModificationTime();
|
||||||
if ($mtime !== false) {
|
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);
|
return OC_Connector_Sabre_Node::getETagPropertyForPath($this->path);
|
||||||
|
|
Loading…
Reference in New Issue