Browse Source

Remove unneeded argument

tags/v8.1.0alpha1
Lukas Reschke 9 years ago
parent
commit
8ebe667202
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/private/connector/sabre/filesplugin.php

+ 1
- 1
lib/private/connector/sabre/filesplugin.php 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');

Loading…
Cancel
Save