]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[adobepass] Don't pollute default headers dict
authorSergey M․ <dstftw@gmail.com>
Mon, 17 Sep 2018 15:15:27 +0000 (22:15 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 17 Sep 2018 15:15:27 +0000 (22:15 +0700)
youtube_dl/extractor/adobepass.py

index b83b51efb624a876bbb46658e50b6f6714e10048..1cf2dcbf35567bc6a47664e1bbf05234eecaf2fb 100644 (file)
@@ -1325,8 +1325,8 @@ class AdobePassIE(InfoExtractor):
     _DOWNLOADING_LOGIN_PAGE = 'Downloading Provider Login Page'
 
     def _download_webpage_handle(self, *args, **kwargs):
-        headers = kwargs.get('headers', {})
-        headers.update(self.geo_verification_headers())
+        headers = self.geo_verification_headers()
+        headers.update(kwargs.get('headers', {}))
         kwargs['headers'] = headers
         return super(AdobePassIE, self)._download_webpage_handle(
             *args, **compat_kwargs(kwargs))