From 4015993682a6c903e013686637aaaed956d53063 Mon Sep 17 00:00:00 2001 From: luqmansen Date: Fri, 26 Jan 2024 14:09:19 +0700 Subject: [PATCH] refactor: use `self.authenticate_header()` to get auth header --- knox/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knox/auth.py b/knox/auth.py index ffb0880b..858ee504 100644 --- a/knox/auth.py +++ b/knox/auth.py @@ -29,7 +29,7 @@ class TokenAuthentication(BaseAuthentication): def authenticate(self, request): auth = get_authorization_header(request).split() - prefix = knox_settings.AUTH_HEADER_PREFIX.encode() + prefix = self.authenticate_header(request).encode() if not auth: return None