mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-03 16:55:33 +00:00
Only raise exception if an error occurred.
This commit is contained in:
parent
def0127cdd
commit
f9add49833
@ -30,8 +30,8 @@ class WSGIApp:
|
||||
)
|
||||
if err:
|
||||
ctx.log.error("Error in wsgi app. %s" % err)
|
||||
flow.reply.kill()
|
||||
raise exceptions.AddonHalt()
|
||||
flow.reply.kill()
|
||||
|
||||
def request(self, f):
|
||||
if (f.request.pretty_host, f.request.port) == (self.host, self.port):
|
||||
|
Loading…
Reference in New Issue
Block a user