summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2018-09-17 22:15:27 +0700
committerSergey M․ <[email protected]>2018-09-17 22:15:27 +0700
commite504b0907082512d5252643d7fd8c5ca67225e3d (patch)
tree6137fca7147c212d31804acf4c7869f160fa2f32
parentc8f6ab8c38f8397b06028cdea2839d6e25e2c809 (diff)
downloadyoutube-dl-e504b0907082512d5252643d7fd8c5ca67225e3d.tar.gz
youtube-dl-e504b0907082512d5252643d7fd8c5ca67225e3d.zip
[adobepass] Don't pollute default headers dict
-rw-r--r--youtube_dl/extractor/adobepass.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/adobepass.py b/youtube_dl/extractor/adobepass.py
index b83b51efb..1cf2dcbf3 100644
--- a/youtube_dl/extractor/adobepass.py
+++ b/youtube_dl/extractor/adobepass.py
@@ -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))