Skip to content

Commit

Permalink
[adobepass] Don't pollute default headers dict
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Sep 17, 2018
1 parent c8f6ab8 commit e504b09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube_dl/extractor/adobepass.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit e504b09

Please sign in to comment.