Disable IDN conversion

This commit is contained in:
Pierre Rudloff 2020-05-14 11:55:30 +02:00
parent 338ecd8b17
commit 7b5e7cb6d9

View file

@ -617,10 +617,12 @@ class Video
* @return ResponseInterface
* @throws EmptyUrlException
* @throws PasswordException
* @link https://github.com/guzzle/guzzle/issues/2640
*/
public function getHttpResponse(array $headers = [])
{
$client = new Client();
// IDN conversion breaks with Google hosts like https://r3---sn-25glene6.googlevideo.com/.
$client = new Client(['idn_conversion' => false]);
$urls = $this->getUrl();
$stream_context_options = [];