refactor: Reuse Video::getHttpResponse() where possible
This commit is contained in:
parent
e93ab7ed13
commit
97a7830196
2 changed files with 4 additions and 12 deletions
|
@ -562,11 +562,11 @@ class Video
|
|||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function getHttpResponse()
|
||||
public function getHttpResponse(array $headers = [])
|
||||
{
|
||||
$client = new Client();
|
||||
$urls = $this->getUrl();
|
||||
|
||||
return $client->request('GET', $urls[0], ['stream' => true]);
|
||||
return $client->request('GET', $urls[0], ['stream' => true, 'headers' => $headers]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue