use Accept-Encoding: gzip instead of identity

fixes twitter scrolling, which had been giving "Loading seems to be
taking a while." error message
This commit is contained in:
Noah Levitt 2017-12-27 14:22:24 -08:00
parent daecb4f59e
commit 1dea1f3f93
2 changed files with 2 additions and 2 deletions

View file

@ -494,7 +494,7 @@ class Browser:
def configure_browser(self, extra_headers=None, user_agent=None):
headers = extra_headers or {}
headers['Accept-Encoding'] = 'identity'
headers['Accept-Encoding'] = 'gzip' # avoid encodings br, sdch
self.send_to_chrome(
method='Network.setExtraHTTPHeaders',
params={'headers': headers})