summaryrefslogtreecommitdiffstats
path: root/lib/private/files.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-03 22:51:36 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-03 22:51:36 +0200
commit3bf269e5655d6b54c63ad2336406de73f145935e (patch)
treeed29895a6ec2e2f44ac081ae1c7fa9d4ec70e1e9 /lib/private/files.php
parentb2b3e1ac946d340b1c5b9ff1af97def6365c4967 (diff)
parent0f58315543a6f3b87d4376cea493c13645687bc2 (diff)
downloadnextcloud-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 'lib/private/files.php')
-rw-r--r--lib/private/files.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files.php b/lib/private/files.php
index 0f48dca9715..d0c1baa0c1e 100644
--- a/lib/private/files.php
+++ b/lib/private/files.php
@@ -69,7 +69,7 @@ class OC_Files {
$filesize = \OC\Files\Filesystem::filesize($filename);
header('Content-Type: '.\OC_Helper::getSecureMimeType(\OC\Files\Filesystem::getMimeType($filename)));
if ($filesize > -1) {
- header("Content-Length: ".$filesize);
+ OC_Response::setContentLengthHeader($filesize);
}
}
}