parent
f556c7d589
commit
d63456f155
1 changed files with 1 additions and 3 deletions
|
@ -470,12 +470,10 @@ class Downloader implements LoggerAwareInterface
|
||||||
*
|
*
|
||||||
* @return ResponseInterface
|
* @return ResponseInterface
|
||||||
* @throws AlltubeLibraryException
|
* @throws AlltubeLibraryException
|
||||||
* @link https://github.com/guzzle/guzzle/issues/2640
|
|
||||||
*/
|
*/
|
||||||
public function getHttpResponse(Video $video, array $headers = []): ResponseInterface
|
public function getHttpResponse(Video $video, array $headers = []): ResponseInterface
|
||||||
{
|
{
|
||||||
// IDN conversion breaks with Google hosts like https://r3---sn-25glene6.googlevideo.com/.
|
$client = new Client();
|
||||||
$client = new Client(['idn_conversion' => false]);
|
|
||||||
|
|
||||||
return $client->request(
|
return $client->request(
|
||||||
'GET',
|
'GET',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue