mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2024-12-13 08:05:41 +00:00
add safeguard
This commit is contained in:
parent
04cb099b15
commit
dfcfa6263c
@ -231,7 +231,8 @@ class HttpLayer(Layer):
|
||||
six.reraise(ProtocolException, ProtocolException(
|
||||
"Error in HTTP connection: %s" % repr(e)), sys.exc_info()[2])
|
||||
finally:
|
||||
flow.live = False
|
||||
if flow:
|
||||
flow.live = False
|
||||
|
||||
def get_request_from_client(self):
|
||||
request = self.read_request()
|
||||
|
Loading…
Reference in New Issue
Block a user