Skip to content

Commit

Permalink
refactor: use self.authenticate_header() to get auth header
Browse files Browse the repository at this point in the history
  • Loading branch information
luqmansen committed Jan 26, 2024
1 parent dd7b062 commit 4015993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knox/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4015993

Please sign in to comment.