diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-02-01 23:27:17 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-02-04 09:52:28 +0100 |
commit | af6c2571312132d4309ffc43e86053c40132c849 (patch) | |
tree | d9858bcdc694e3aa9ee8764b319a239a23043c94 /libmproxy/protocol | |
parent | ab3543ba4d66f5ffadf0873a7fd384e2ddf8336f (diff) | |
download | mitmproxy-af6c2571312132d4309ffc43e86053c40132c849.tar.gz mitmproxy-af6c2571312132d4309ffc43e86053c40132c849.tar.bz2 mitmproxy-af6c2571312132d4309ffc43e86053c40132c849.zip |
fix flow == None errors
Diffstat (limited to 'libmproxy/protocol')
-rw-r--r-- | libmproxy/protocol/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index 6a669ae1..9b4d4d8f 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -188,7 +188,7 @@ class HttpLayer(Layer): self.log("response", "debug", [repr(flow.response)]) flow = self.channel.ask("response", flow) - if flow == Kill: + if not flow or flow == Kill: raise Kill() self.send_response_to_client(flow) |