A feature-rich command-line audio/video downloader
[twitch] Don't pollute default headers dict
Sergey M․e2f61598be49
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.pyindex 26661fdf63..401615683d 100644--- a/youtube_dl/extractor/twitch.py+++ b/youtube_dl/extractor/twitch.py@@ -51,7 +51,9 @@ class TwitchBaseIE(InfoExtractor):expected=True)def _call_api(self, path, item_id, *args, **kwargs):- kwargs.setdefault('headers', {})['Client-ID'] = self._CLIENT_ID+ headers = kwargs.get('headers', {}).copy()+ headers['Client-ID'] = self._CLIENT_ID+ kwargs['headers'] = headersresponse = self._download_json('%s/%s' % (self._API_BASE, path), item_id,*args, **compat_kwargs(kwargs))