Skip to content
Snippets Groups Projects
Commit 0fa12f8d authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #2214 from riso/fix_xsendfile

Fixed typo that broke xsendfile
parents 4763c461 99c873ea
Branches
No related tags found
No related merge requests found
...@@ -128,7 +128,7 @@ class OC_Files { ...@@ -128,7 +128,7 @@ class OC_Files {
header('Content-Type: '.\OC\Files\Filesystem::getMimeType($filename)); header('Content-Type: '.\OC\Files\Filesystem::getMimeType($filename));
header("Content-Length: ".\OC\Files\Filesystem::filesize($filename)); header("Content-Length: ".\OC\Files\Filesystem::filesize($filename));
list($storage) = \OC\Files\Filesystem::resolvePath($filename); list($storage) = \OC\Files\Filesystem::resolvePath($filename);
if ($storage instanceof \OC\File\Storage\Local) { if ($storage instanceof \OC\Files\Storage\Local) {
self::addSendfileHeader(\OC\Files\Filesystem::getLocalFile($filename)); self::addSendfileHeader(\OC\Files\Filesystem::getLocalFile($filename));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment