diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-03 10:46:27 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-03 10:46:27 +0200 |
commit | 351740601a81558843a92670ad113a61f6e2f1be (patch) | |
tree | 1fab36790b5cafe288a0c37ddcf517ab6ae07aa1 /apps/files | |
parent | 80dff77b659d843994255509fe2f3204e2b6193e (diff) | |
download | nextcloud-server-351740601a81558843a92670ad113a61f6e2f1be.tar.gz nextcloud-server-351740601a81558843a92670ad113a61f6e2f1be.zip |
port oc_response
Diffstat (limited to 'apps/files')
-rwxr-xr-x | 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 a4077b9f042..e98cf2ecd31 100755 --- a/apps/files/download.php +++ b/apps/files/download.php @@ -41,7 +41,7 @@ $ftype=OC_Filesystem::getMimeType( $filename ); header('Content-Type:'.$ftype); header('Content-Disposition: attachment; filename="'.basename($filename).'"'); -OC_Response::disableCaching(); +OCP\Response::disableCaching(); header('Content-Length: '.OC_Filesystem::filesize($filename)); @ob_end_clean(); |