Skip to content

Commit

Permalink
Correctly set error page to be rendered (#6014)
Browse files Browse the repository at this point in the history
Correctly sets the error page to be rendered when authorize_callback returns False
  • Loading branch information
mitulb authored and philippjfr committed Dec 12, 2023
1 parent 4a0237b commit fbf3d8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panel/io/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,8 @@ async def get(self, *args, **kwargs):
if authorized is None:
return
elif not authorized:
self._render_auth_error(auth_error)
page = self.set_header("Content-Type", 'text/html')
page = self._render_auth_error(auth_error)
self.set_header("Content-Type", 'text/html')
self.write(page)
return

Expand Down

0 comments on commit fbf3d8c

Please sign in to comment.