mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2024-11-23 05:09:57 +00:00
Fixes a bug which caused a crash if you've tried to accept a connection which wasn't intercepted.
This commit is contained in:
parent
79d2abb23a
commit
0fc864c419
@ -540,11 +540,12 @@ class Flow:
|
||||
self.intercepting = True
|
||||
|
||||
def accept_intercept(self):
|
||||
if not self.request.acked:
|
||||
self.request.ack()
|
||||
elif self.response and not self.response.acked:
|
||||
self.response.ack()
|
||||
self.intercepting = False
|
||||
if self.request:
|
||||
if not self.request.acked:
|
||||
self.request.ack()
|
||||
elif self.response and not self.response.acked:
|
||||
self.response.ack()
|
||||
self.intercepting = False
|
||||
|
||||
|
||||
class State:
|
||||
|
1
todo
1
todo
@ -15,7 +15,6 @@ Future:
|
||||
Bugs:
|
||||
|
||||
- Exception handling for regular expression compiler in filt.py.
|
||||
- Fix crash cause on undefined request in libmproxy/console.py:543
|
||||
- Fix crash on illegal regular expression on libmproxy/filt.py:76
|
||||
- In some circumstances, long URLs in list view are line-broken oddly.
|
||||
- Termination sometimes hangs.
|
||||
|
Loading…
Reference in New Issue
Block a user