mirror of
https://github.com/nextcloud/server.git
synced 2024-08-13 02:10:44 +02:00
fixed typo that broke xsendfile
This commit is contained in:
parent
4763c4616f
commit
99c873ea29
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user