1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-03 23:37:39 +02: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:
Andreas Fischer
2015-01-28 19:56:47 +01:00

View File

@@ -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);