From 29c4b47b13b1f384dc36ddbf4e924f3c7bf9d8c7 Mon Sep 17 00:00:00 2001 From: Jake Ichikawa <45948647+jakeichikawasalesforce@users.noreply.github.com> Date: Wed, 11 Aug 2021 13:59:22 -0700 Subject: [PATCH] Formatting 406 error information to uppercase. Co-authored-by: ChairmanMa0 --- tabpy/tabpy_server/handlers/base_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabpy/tabpy_server/handlers/base_handler.py b/tabpy/tabpy_server/handlers/base_handler.py index 5a5be72d..0b20ca4f 100644 --- a/tabpy/tabpy_server/handlers/base_handler.py +++ b/tabpy/tabpy_server/handlers/base_handler.py @@ -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(