mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-28 20:24:59 +08:00
Fix crash when adding a Response when none existed before.
This commit is contained in:
@@ -334,7 +334,7 @@ class FlowView(common.WWrap):
|
||||
conn = self.flow.request
|
||||
else:
|
||||
if not self.flow.response:
|
||||
self.flow.response = flow.Response(self.flow.request, 200, "OK", flow.ODictCaseless(), "")
|
||||
self.flow.response = flow.Response(self.flow.request, 200, "OK", flow.ODictCaseless(), "", None)
|
||||
conn = self.flow.response
|
||||
|
||||
self.flow.backup()
|
||||
|
||||
Reference in New Issue
Block a user