Merge pull request #1698 from vhaupert/master

Wsgiapp: Only raise exception if an error occurred.
This commit is contained in:
Aldo Cortesi 2016-11-01 12:02:01 +13:00 committed by GitHub
commit 1cc2195f45

View File

@ -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):