Skip to content

Commit

Permalink
rollback: "token" must be present
Browse files Browse the repository at this point in the history
  • Loading branch information
d-flood committed Mar 4, 2024
1 parent b5f6c67 commit c246f35
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions catchpy/consumer/jwt_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ def get_credentials(request):
credentials = token.encode('iso-8859-1')
else:
credentials = token
else: # when testing via swagger, token is not prefixed with 'token'
credentials = header[0]
else: # try annotator header
header = request.META.get(JWT_ANNOTATOR_HEADER)
if header:
Expand Down

0 comments on commit c246f35

Please sign in to comment.