Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Sending a JWT token followed by comma raises IndexError #347

Closed
svidela opened this issue Jul 19, 2020 · 2 comments
Closed

Sending a JWT token followed by comma raises IndexError #347

svidela opened this issue Jul 19, 2020 · 2 comments

Comments

@svidela
Copy link

svidela commented Jul 19, 2020

Hi,

I found that if the user sends the JWT token followed by a comma (,) an IndexError is raised. Is this the expected behaviour? You should be able to reproduce this using the basic example from the docs. It appears that the exception is raised executing s.split()[0] in

jwt_header = [s for s in field_values if s.split()[0] == header_type]

Regards,

@vimalloc
Copy link
Owner

Sounds like a bug to me. Thanks for the report!

@vimalloc
Copy link
Owner

vimalloc commented May 2, 2021

Fixed in v4.2.0!

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

No branches or pull requests

2 participants