Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit 92a92c6

Browse files
committed
updated addons
1 parent aff07b6 commit 92a92c6

File tree

1 file changed

+3
-3
lines changed
  • browserup-proxy-core/src/main/resources/mitmproxy

1 file changed

+3
-3
lines changed

browserup-proxy-core/src/main/resources/mitmproxy/har_dump.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,17 +571,17 @@ def request(self, flow):
571571
har_entry['timings']['dnsNanos'] = connect_timing['dnsTimeNanos']
572572

573573
def capture_request_cookies(self, flow):
574-
har_entry = flow.metadata['currentHarEntry']
574+
har_entry = self.get_har_entry(flow)
575575
har_entry['request']['cookies'] = \
576576
self.format_request_cookies(flow.request.cookies.fields)
577577

578578
def capture_request_headers(self, flow):
579-
har_entry = flow.metadata['currentHarEntry']
579+
har_entry = self.get_har_entry(flow)
580580
har_entry['request']['headers'] = \
581581
self.name_value(flow.request.headers)
582582

583583
def capture_request_content(self, flow):
584-
har_entry = flow.metadata['currentHarEntry']
584+
har_entry = self.get_har_entry(flow)
585585
params = [
586586
{"name": a, "value": b}
587587
for a, b in flow.request.urlencoded_form.items(multi=True)

0 commit comments

Comments
 (0)