Commit 30082774 authored by Vincent Ardisson's avatar Vincent Ardisson Committed by Vincent A

weboob/browser/browsers: crude "SAVE_ONLY_RESPONSES" implementation for HAR

Should be improved in the future by not filtering URL and verb and
replicating transfer behavior.
parent af9726e1
......@@ -311,6 +311,9 @@ class Browser(object):
} for key, value in parse_qsl(request.body)
]
if self.SAVE_ONLY_RESPONSES:
del har_entry['request']
with self.responses_lock:
self.har_bundle['log']['entries'].append(har_entry)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment