just test gzip,deflate after all

This commit is contained in:
Barbara Miller 2016-09-30 14:08:00 -07:00
parent 49e38f608a
commit 49e7d81239

View File

@ -154,18 +154,6 @@ class Browser:
"exception writing cookie file at %s",
cookie_location, exc_info=True)
'''
local_state = {'browser':{'enabled_labs_experiments':['enable-brotli@2']}}
local_state_location = os.path.join(data_dir, 'Local State')
try:
with open(local_state_location, 'w+') as f:
json.dump(local_state, f)
except OSError:
self.logger.error(
"exception writing local state file at %s",
local_state_location, exc_info=True)
'''
self._chrome_instance = Chrome(
port=self.chrome_port, executable=self.chrome_exe,
user_home_dir=self._work_dir.name,
@ -473,7 +461,7 @@ __brzl_compileOutlinks(window).join(' ');
self.send_to_chrome(method="Runtime.enable")
headers = self.extra_headers or {}
headers['Accept-Encoding'] = 'identity'
headers['Accept-Encoding'] = 'gzip, deflate'
self.send_to_chrome(
method="Network.setExtraHTTPHeaders",
params={"headers":headers})