Skip to content

Fix 500 error with empty token/bearer#1456

Closed
smeng9 wants to merge 1 commit into
pyeve:masterfrom
smeng9:auth_fix
Closed

Fix 500 error with empty token/bearer#1456
smeng9 wants to merge 1 commit into
pyeve:masterfrom
smeng9:auth_fix

Conversation

@smeng9

@smeng9 smeng9 commented Aug 19, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants