mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
set header Content-Length
This commit is contained in:
parent
6971a46be8
commit
62d19aa808
|
@ -172,6 +172,8 @@ class SeedDMS_Preview_Base {
|
|||
if($this->xsendfile && function_exists('apache_get_modules') && in_array('mod_xsendfile',apache_get_modules())) {
|
||||
header("X-Sendfile: ".$filename);
|
||||
} else {
|
||||
$size = filesize($filename);
|
||||
header("Content-Length: " . $size);
|
||||
/* Make sure output buffering is off */
|
||||
if (ob_get_level()) {
|
||||
ob_end_clean();
|
||||
|
|
Loading…
Reference in New Issue
Block a user