diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-08-31 17:05:52 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-08-31 17:05:52 +0200 |
commit | b04e6e56ab1e69853abebfb950539e3a3aefbdf2 (patch) | |
tree | c1907cda3384aee854dbeb5132bed029ae26e595 /libmproxy/protocol/http_replay.py | |
parent | 41e6e538dfa758b7d9f867f85f62e881ae408684 (diff) | |
download | mitmproxy-b04e6e56ab1e69853abebfb950539e3a3aefbdf2.tar.gz mitmproxy-b04e6e56ab1e69853abebfb950539e3a3aefbdf2.tar.bz2 mitmproxy-b04e6e56ab1e69853abebfb950539e3a3aefbdf2.zip |
update inline script hooks
Diffstat (limited to 'libmproxy/protocol/http_replay.py')
-rw-r--r-- | libmproxy/protocol/http_replay.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/protocol/http_replay.py b/libmproxy/protocol/http_replay.py index c37fd131..2759a019 100644 --- a/libmproxy/protocol/http_replay.py +++ b/libmproxy/protocol/http_replay.py @@ -36,7 +36,7 @@ class RequestReplayThread(threading.Thread): # If we have a channel, run script hooks. if self.channel: request_reply = self.channel.ask("request", self.flow) - if request_reply is None or request_reply == Kill: + if request_reply == Kill: raise Kill() elif isinstance(request_reply, HTTPResponse): self.flow.response = request_reply @@ -82,7 +82,7 @@ class RequestReplayThread(threading.Thread): ) if self.channel: response_reply = self.channel.ask("response", self.flow) - if response_reply is None or response_reply == Kill: + if response_reply == Kill: raise Kill() except (HttpError, NetLibError) as v: self.flow.error = Error(repr(v)) |