mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
just test gzip,deflate after all
This commit is contained in:
parent
8accfcb8d9
commit
0b84abc4ec
@ -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,
|
||||
@ -471,7 +459,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":self.extra_headers})
|
||||
|
Loading…
x
Reference in New Issue
Block a user