Skip to content

Commit

Permalink
Formatting 406 error information to uppercase.
Browse files Browse the repository at this point in the history
Co-authored-by: ChairmanMa0 <jsliu78@gmail.com>
  • Loading branch information
jakeichikawasalesforce and ChairmanMa0 committed Aug 11, 2021
1 parent 45b8e7c commit 29c4b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tabpy/tabpy_server/handlers/base_handler.py
Expand Up @@ -434,7 +434,7 @@ def fail_with_auth_error(self):
log_message="Invalid credentials provided.",
)
else:
self.logger.log(logging.ERROR, "Failing with 406 for not acceptable")
self.logger.log(logging.ERROR, "Failing with 406 for Not Acceptable")
self.set_status(406)
self.set_header("WWW-Authenticate", f'Basic realm="{self.tabpy_state.name}"')
self.error_out(
Expand Down

0 comments on commit 29c4b47

Please sign in to comment.