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

fix: Trim token before passing it to the authorization header #1578

Merged
merged 2 commits into from
Jul 18, 2020

Conversation

SubZero0
Copy link
Member

Summary

Prevents the client from logging in successfully but throwing an exception when doing http methods that aren't GET with an error 411: LengthRequired that isn't intuitive to why it happened since it can occur long after the client started.

Fixes #1577

@Emzi0767
Copy link
Contributor

Emzi0767 commented Jun 21, 2020

Instead of trimming it on every use, why not trim it in the config? This way the operation happens once.

@SubZero0
Copy link
Member Author

True, it could be done when assigning it to the AuthToken instead.

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.

Token validation and error 411: LengthRequired
3 participants