Skip to content

Commit

Permalink
Added sync=True argument to the render_template method call (HewlettP…
Browse files Browse the repository at this point in the history
…ackard#68)

Adding sync=True helps comply with the Tornado RequestHandler
finish method here:
https://www.tornadoweb.org/en/stable/web.html?highlight=RequestHandler#tornado.web.RequestHandler.finish
  • Loading branch information
kyorevk authored Mar 21, 2022
1 parent 7e1587a commit 7ddf465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samlauthenticator/samlauthenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ async def get(logout_handler_self):
authenticator_self._get_redirect_from_metadata_and_redirect('md:SingleLogoutService',
logout_handler_self)
else:
html = logout_handler_self.render_template('logout.html')
html = logout_handler_self.render_template('logout.html', sync=True)
logout_handler_self.finish(html)

class SAMLMetaHandler(BaseHandler):
Expand Down

0 comments on commit 7ddf465

Please sign in to comment.