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);
|
$url_info = parse_url($video->url);
|
||||||
if ($url_info['scheme'] == 'rtmp') {
|
if ($url_info['scheme'] == 'rtmp') {
|
||||||
|
ob_end_flush();
|
||||||
header(
|
header(
|
||||||
'Content-Disposition: attachment; filename="'.
|
'Content-Disposition: attachment; filename="'.
|
||||||
html_entity_decode(
|
html_entity_decode(
|
||||||
|
@ -74,6 +75,7 @@ class FrontController {
|
||||||
);
|
);
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
|
ob_end_flush();
|
||||||
header(
|
header(
|
||||||
'Content-Disposition: attachment; filename="'.
|
'Content-Disposition: attachment; filename="'.
|
||||||
html_entity_decode(
|
html_entity_decode(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue