summaryrefslogtreecommitdiffstats
path: root/lib/private/connector/sabre
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-08-18 18:39:16 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-09-22 14:12:52 +0200
commit387638e31781dd2d0ec0448626fee66f13e5f5f4 (patch)
treef08d19802ff000726a37f89c9daec0a0d2e5d457 /lib/private/connector/sabre
parent2d3ea08e193ab099f5ae71cc104dbb5b0c5af7e1 (diff)
downloadnextcloud-server-387638e31781dd2d0ec0448626fee66f13e5f5f4.tar.gz
nextcloud-server-387638e31781dd2d0ec0448626fee66f13e5f5f4.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/sabre')
-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'));
}