fix: always use headers provided by youtube-dl when streaming
This commit is contained in:
parent
7020c7516f
commit
9fc21b2419
2 changed files with 9 additions and 2 deletions
|
@ -166,7 +166,7 @@ class DownloadController extends BaseController
|
|||
$response = $response->withHeader('Content-Type', 'video/' . $this->video->ext);
|
||||
$body = new Stream($this->video->getM3uStream());
|
||||
} else {
|
||||
$headers = (array) $this->video->http_headers;
|
||||
$headers = [];
|
||||
$range = $request->getHeader('Range');
|
||||
|
||||
if (!empty($range)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue