This commit is contained in:
Kovid Goyal 2017-02-13 13:13:42 +05:30
parent 8b250188ce
commit 0489816b68

View File

@ -834,10 +834,10 @@ class Amazon(Source):
if self._browser is None:
self._browser = br = browser(user_agent=random_user_agent(allow_ie=False))
br.set_handle_gzip(True)
br.addheaders += [
('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'),
('Upgrade-Insecure-Requests', '1'),
]
# br.addheaders += [
# ('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'),
# ('Upgrade-Insecure-Requests', '1'),
# ]
return self._browser.clone_browser()
def save_settings(self, *args, **kwargs):