Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix 500 error with empty token/bearer #1456

Closed
wants to merge 1 commit into from
Closed

Fix 500 error with empty token/bearer #1456

wants to merge 1 commit into from

Conversation

smeng9
Copy link
Contributor

@smeng9 smeng9 commented Aug 19, 2021

Some of the browser will set the authorization header as

Authorization: Token

with an empty token.

This will make the TokenAuth fail with 500 error
This PR adds a check for empty token

nicolaiarocci added a commit that referenced this pull request Feb 10, 2022
@nicolaiarocci
Copy link
Member

Hi, sorry for the delay. Rebased and merged. Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants