[NRK] Remove explicit Accept-Encoding header that invites Brotli
authordirkf <fieldhouse@gmx.net>
Mon, 10 Oct 2022 17:41:40 +0000 (17:41 +0000)
committerGitHub <noreply@github.com>
Mon, 10 Oct 2022 17:41:40 +0000 (17:41 +0000)
Fixes #31285

youtube_dl/extractor/nrk.py

index 6d01a25c3e561ac67bb3814d2c31cb357fcd0a30..5a62b50fcaafe0999b453b6bfe09eed9200677b4 100644 (file)
@@ -60,8 +60,7 @@ class NRKBaseIE(InfoExtractor):
         return self._download_json(
             urljoin('https://psapi.nrk.no/', path),
             video_id, note or 'Downloading %s JSON' % item,
-            fatal=fatal, query=query,
-            headers={'Accept-Encoding': 'gzip, deflate, br'})
+            fatal=fatal, query=query)
 
 
 class NRKIE(NRKBaseIE):