Use afterBind to send fileId header for files and directories
afterBind is called for both files and directories and is now used to send the OC-FileId headers.
This commit is contained in:
parent
1b81cc1acd
commit
ec274ad40b
|
@ -41,7 +41,7 @@ class OC_Connector_Sabre_FilesPlugin extends \Sabre\DAV\ServerPlugin
|
||||||
|
|
||||||
$this->server = $server;
|
$this->server = $server;
|
||||||
$this->server->subscribeEvent('beforeGetProperties', array($this, 'beforeGetProperties'));
|
$this->server->subscribeEvent('beforeGetProperties', array($this, 'beforeGetProperties'));
|
||||||
$this->server->subscribeEvent('afterCreateFile', array($this, 'sendFileIdHeader'));
|
$this->server->subscribeEvent('afterBind', array($this, 'sendFileIdHeader'));
|
||||||
$this->server->subscribeEvent('afterWriteContent', array($this, 'sendFileIdHeader'));
|
$this->server->subscribeEvent('afterWriteContent', array($this, 'sendFileIdHeader'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue