[Pkg-owncloud-commits] [php-sabredav] 116/163: Browser plugin now automatically takes over GET requests
David Prévot
taffit at moszumanska.debian.org
Tue May 20 18:55:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag upstream/2.0.0_beta1
in repository php-sabredav.
commit d83b03e39c45488e000943966e4a97f46f92613c
Author: Evert Pot <evert at rooftopsolutions.nl>
Date: Sat May 3 20:48:31 2014 -0400
Browser plugin now automatically takes over GET requests
if there were simply no handlers for it.
---
lib/Sabre/DAV/Browser/Plugin.php | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/lib/Sabre/DAV/Browser/Plugin.php b/lib/Sabre/DAV/Browser/Plugin.php
index dc6461a..97269cd 100644
--- a/lib/Sabre/DAV/Browser/Plugin.php
+++ b/lib/Sabre/DAV/Browser/Plugin.php
@@ -99,7 +99,7 @@ class Plugin extends DAV\ServerPlugin {
public function initialize(DAV\Server $server) {
$this->server = $server;
- $this->server->on('method:GET',[$this,'httpGet']);
+ $this->server->on('method:GET', [$this,'httpGet'], 200);
$this->server->on('onHTMLActionsPanel', [$this, 'htmlActionsPanel'],200);
if ($this->enablePost) $this->server->on('method:POST', [$this,'httpPOST']);
}
@@ -133,11 +133,6 @@ class Plugin extends DAV\ServerPlugin {
return;
}
- // Don't show the browser if it's a IFile node, unless
- // sabreAction=browser.
- if ($sabreAction!=='browser' && $node instanceof DAV\IFile)
- return;
-
$response->setStatus(200);
$response->setHeader('Content-Type','text/html; charset=utf-8');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list