diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2016-03-06 17:38:39 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2016-03-06 17:38:39 +0800 |
commit | e41acb63647e4aad52dff25b505bdc0bb2a6b9e6 (patch) | |
tree | 7c8eec0cc9578cd75bce6d26946df3cd9607476c /youtube_dl | |
parent | bdf7f13954f50b55cc38fa5f877ae261affbdc32 (diff) |
[safari] Don't pollute std_headers (#8778)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/safari.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/safari.py b/youtube_dl/extractor/safari.py index 7de7b7273..a65fc8ed7 100644 --- a/youtube_dl/extractor/safari.py +++ b/youtube_dl/extractor/safari.py @@ -36,12 +36,13 @@ class SafariBaseIE(InfoExtractor): if username is None: self.raise_login_required('safaribooksonline.com account is required') - headers = std_headers + headers = std_headers.copy() if 'Referer' not in headers: headers['Referer'] = self._LOGIN_URL + login_page_request = sanitized_Request(self._LOGIN_URL, headers=headers) login_page = self._download_webpage( - self._LOGIN_URL, None, + login_page_request, None, 'Downloading login form') csrf = self._html_search_regex( |