summaryrefslogtreecommitdiffstats
path: root/lib/private/connector
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-08-18 18:39:16 +0200
committerVincent Petry <pvince81@owncloud.com>2014-08-18 18:40:58 +0200
commitec274ad40b8d8a04d2a5085ee6944cecaf078b66 (patch)
tree95fe94633ee8658e0acbfb2616b0ee1f750d289f /lib/private/connector
parent1b81cc1acd1686a4f6efb20f27f085997d99a429 (diff)
downloadnextcloud-server-ec274ad40b8d8a04d2a5085ee6944cecaf078b66.tar.gz
nextcloud-server-ec274ad40b8d8a04d2a5085ee6944cecaf078b66.zip
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.
Diffstat (limited to 'lib/private/connector')
-rw-r--r--lib/private/connector/sabre/filesplugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/filesplugin.php b/lib/private/connector/sabre/filesplugin.php
index 5f83aa0fb55..f281ffd14b6 100644
--- a/lib/private/connector/sabre/filesplugin.php
+++ b/lib/private/connector/sabre/filesplugin.php
@@ -41,7 +41,7 @@ class OC_Connector_Sabre_FilesPlugin extends \Sabre\DAV\ServerPlugin
$this->server = $server;
$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'));
}