aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-02-01 23:27:17 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-02-04 09:52:28 +0100
commitaf6c2571312132d4309ffc43e86053c40132c849 (patch)
treed9858bcdc694e3aa9ee8764b319a239a23043c94
parentab3543ba4d66f5ffadf0873a7fd384e2ddf8336f (diff)
downloadmitmproxy-af6c2571312132d4309ffc43e86053c40132c849.tar.gz
mitmproxy-af6c2571312132d4309ffc43e86053c40132c849.tar.bz2
mitmproxy-af6c2571312132d4309ffc43e86053c40132c849.zip
fix flow == None errors
-rw-r--r--libmproxy/protocol/http.py2
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)