Skip to content

Commit 271179a

Browse files
Merge pull request #329 from luqmansen/develop
refactor(auth): Use `self.authenticate_header()` in `authenticate()` method to get auth header prefix
2 parents ad1eca6 + 4015993 commit 271179a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

knox/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class TokenAuthentication(BaseAuthentication):
2929

3030
def authenticate(self, request):
3131
auth = get_authorization_header(request).split()
32-
prefix = knox_settings.AUTH_HEADER_PREFIX.encode()
32+
prefix = self.authenticate_header(request).encode()
3333

3434
if not auth:
3535
return None

0 commit comments

Comments
 (0)