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:
|
if err:
|
||||||
ctx.log.error("Error in wsgi app. %s" % err)
|
ctx.log.error("Error in wsgi app. %s" % err)
|
||||||
|
raise exceptions.AddonHalt()
|
||||||
flow.reply.kill()
|
flow.reply.kill()
|
||||||
raise exceptions.AddonHalt()
|
|
||||||
|
|
||||||
def request(self, f):
|
def request(self, f):
|
||||||
if (f.request.pretty_host, f.request.port) == (self.host, self.port):
|
if (f.request.pretty_host, f.request.port) == (self.host, self.port):
|
||||||
|
Loading…
Reference in New Issue
Block a user