Remove unneeded argument

This commit is contained in:
Lukas Reschke 2015-03-26 20:45:39 +01:00
parent 55fd0082aa
commit 8ebe667202

View file

@ -99,7 +99,7 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin {
*/
function httpGet(RequestInterface $request, ResponseInterface $response) {
// Only handle valid files
$node = $this->tree->getNodeForPath($request->getPath(), 0);
$node = $this->tree->getNodeForPath($request->getPath());
if (!($node instanceof IFile)) return;
$response->addHeader('Content-Disposition', 'attachment');