Get only scheme part of URL
This commit is contained in:
parent
20ad5559be
commit
0ab0819abc
1 changed files with 1 additions and 2 deletions
|
@ -123,8 +123,7 @@ class FrontController
|
||||||
'user_agent',
|
'user_agent',
|
||||||
$video->http_headers->{'User-Agent'}
|
$video->http_headers->{'User-Agent'}
|
||||||
);
|
);
|
||||||
$url_info = parse_url($video->url);
|
if (parse_url($video->url, PHP_URL_SCHEME) == 'rtmp') {
|
||||||
if ($url_info['scheme'] == 'rtmp') {
|
|
||||||
ob_end_flush();
|
ob_end_flush();
|
||||||
header(
|
header(
|
||||||
'Content-Disposition: attachment; filename="'.
|
'Content-Disposition: attachment; filename="'.
|
||||||
|
|
Loading…
Reference in a new issue