Clean output buffer before using passthru (fixes #37)
This commit is contained in:
parent
9ffd1d2769
commit
22cffe4a90
1 changed files with 2 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue