summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-02-18 13:41:42 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-02-23 22:27:23 +0100
commit432d7be8cc66da0de1e174522333e5b5dd004c91 (patch)
tree02a7c62ef6c01a75411aa03b411f72136beeae42 /apps
parent5b6caf763cd3f5365c9ea1c49528c738188f0e8c (diff)
downloadnextcloud-server-432d7be8cc66da0de1e174522333e5b5dd004c91.tar.gz
nextcloud-server-432d7be8cc66da0de1e174522333e5b5dd004c91.zip
Show a empty response for GET on non-files instead of the Browser Plugin
Diffstat (limited to 'apps')
-rw-r--r--apps/files/appinfo/remote.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/appinfo/remote.php b/apps/files/appinfo/remote.php
index 98db95041fe..e4a105b6d28 100644
--- a/apps/files/appinfo/remote.php
+++ b/apps/files/appinfo/remote.php
@@ -41,7 +41,8 @@ $server->setBaseUri($baseuri);
$defaults = new OC_Defaults();
$server->addPlugin(new \Sabre\DAV\Auth\Plugin($authBackend, $defaults->getName()));
$server->addPlugin(new \Sabre\DAV\Locks\Plugin($lockBackend));
-$server->addPlugin(new \Sabre\DAV\Browser\Plugin(false, false)); // Show something in the Browser, but no upload
+// FIXME: The following line is a workaround for legacy components relying on being able to send a GET to /
+$server->addPlugin(new \OC\Connector\Sabre\DummyGetResponsePlugin());
$server->addPlugin(new \OC\Connector\Sabre\FilesPlugin($objectTree));
$server->addPlugin(new \OC\Connector\Sabre\MaintenancePlugin());
$server->addPlugin(new \OC\Connector\Sabre\ExceptionLoggerPlugin('webdav'));