mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-09 00:55:23 +02:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/13414] Set Content-Length header only if status is not 304
This commit is contained in:
commit
91ff42d501
@ -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…
x
Reference in New Issue
Block a user