From b7cab9d7406b170aea446184a25057ab5627a36a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 18 Jul 2018 15:14:43 +0200 Subject: [PATCH] remove anonymous option handling this was moved to core Signed-off-by: Robin Appelman --- lib/DavPlugin.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/DavPlugin.php b/lib/DavPlugin.php index 00a98d9..b794b85 100644 --- a/lib/DavPlugin.php +++ b/lib/DavPlugin.php @@ -63,15 +63,5 @@ class DavPlugin extends ServerPlugin { $this->session->set('user_saml.samlUserData', $this->auth); } } - - if ($request->getMethod() === 'OPTIONS' && $request->getPath() === '') { - /** @var CorePlugin $corePlugin */ - $corePlugin = $this->server->getPlugin('core'); - // setup a fake tree for anonymous access - $this->server->tree = new Tree(new Directory('')); - $corePlugin->httpOptions($request, $response); - $this->server->sapi->sendResponse($response); - return false; - } } }