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