Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/python-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.11
3.10
2 changes: 1 addition & 1 deletion mitmproxy/addons/blocklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def request(self, flow: http.HTTPFlow) -> None:
if spec.matches(flow):
flow.metadata["blocklisted"] = True
if spec.status_code == NO_RESPONSE:
flow.intercept()
#flow.intercept()
if flow.killable:
flow.kill()
else:
Expand Down
2 changes: 1 addition & 1 deletion mitmproxy/addons/browserup/browser_data_addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def request(self, f: mitmproxy.http.HTTPFlow):
self.HarCaptureAddon.add_page_info_to_har(page_timings)
if action == 'page_complete':
self.HarCaptureAddon.end_page()
f.kill()
f.kill()

def response(self, f: mitmproxy.http.HTTPFlow):
if f.response is None or f.response.status_code != 200 or f.request.method not in ['GET', 'POST', 'PUT']:
Expand Down