mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Merge branch 'develop-olympus' into develop-ascraeus
* develop-olympus: [ticket/13414] Set Content-Length header only if status is not 304 Conflicts: phpBB/download/file.php
This commit is contained in:
commit
e3e427fa24
1 changed files with 5 additions and 5 deletions
|
@ -210,11 +210,6 @@ function send_file_to_browser($attachment, $upload_dir, $category)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($size)
|
|
||||||
{
|
|
||||||
header("Content-Length: $size");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Close the db connection before sending the file etc.
|
// Close the db connection before sending the file etc.
|
||||||
file_gc(false);
|
file_gc(false);
|
||||||
|
|
||||||
|
@ -238,6 +233,11 @@ function send_file_to_browser($attachment, $upload_dir, $category)
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($size)
|
||||||
|
{
|
||||||
|
header("Content-Length: $size");
|
||||||
|
}
|
||||||
|
|
||||||
// Try to deliver in chunks
|
// Try to deliver in chunks
|
||||||
@set_time_limit(0);
|
@set_time_limit(0);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue