Commit 8ebe6672 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Remove unneeded argument

parent 55fd0082
...@@ -99,7 +99,7 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin { ...@@ -99,7 +99,7 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin {
*/ */
function httpGet(RequestInterface $request, ResponseInterface $response) { function httpGet(RequestInterface $request, ResponseInterface $response) {
// Only handle valid files // Only handle valid files
$node = $this->tree->getNodeForPath($request->getPath(), 0); $node = $this->tree->getNodeForPath($request->getPath());
if (!($node instanceof IFile)) return; if (!($node instanceof IFile)) return;
$response->addHeader('Content-Disposition', 'attachment'); $response->addHeader('Content-Disposition', 'attachment');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment