diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-03 22:51:36 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-03 22:51:36 +0200 |
commit | 3bf269e5655d6b54c63ad2336406de73f145935e (patch) | |
tree | ed29895a6ec2e2f44ac081ae1c7fa9d4ec70e1e9 /apps/files/download.php | |
parent | b2b3e1ac946d340b1c5b9ff1af97def6365c4967 (diff) | |
parent | 0f58315543a6f3b87d4376cea493c13645687bc2 (diff) | |
download | nextcloud-server-3bf269e5655d6b54c63ad2336406de73f145935e.tar.gz nextcloud-server-3bf269e5655d6b54c63ad2336406de73f145935e.zip |
Merge pull request #15229 from owncloud/response-setContentLengthHeader
Add OC_Response::setContentLengthHeader() for Apache PHP SAPI workaround...
Diffstat (limited to 'apps/files/download.php')
-rw-r--r-- | apps/files/download.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/download.php b/apps/files/download.php index 1af576051bd..c85051e0f4e 100644 --- a/apps/files/download.php +++ b/apps/files/download.php @@ -43,7 +43,7 @@ $ftype=\OC_Helper::getSecureMimeType(\OC\Files\Filesystem::getMimeType( $filenam header('Content-Type:'.$ftype); OCP\Response::setContentDispositionHeader(basename($filename), 'attachment'); OCP\Response::disableCaching(); -header('Content-Length: '.\OC\Files\Filesystem::filesize($filename)); +OCP\Response::setContentLengthHeader(\OC\Files\Filesystem::filesize($filename)); OC_Util::obEnd(); \OC\Files\Filesystem::readfile( $filename ); |