Clean output buffer before using passthru (fixes #37)

This commit is contained in:
Pierre Rudloff 2015-10-29 22:53:59 +01:00
parent 9ffd1d2769
commit 22cffe4a90

View file

@ -57,6 +57,7 @@ class FrontController {
);
$url_info = parse_url($video->url);
if ($url_info['scheme'] == 'rtmp') {
ob_end_flush();
header(
'Content-Disposition: attachment; filename="'.
html_entity_decode(
@ -74,6 +75,7 @@ class FrontController {
);
exit;
} else {
ob_end_flush();
header(
'Content-Disposition: attachment; filename="'.
html_entity_decode(