We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you create the client like so:
treaty<App>('http://localhost:4000', { onRequest: (path, options) => { const token = localStorage.get('token'); if( token ) { return { headers: { Authorization: `Bearer ${token}` } } } } })
Ends up sending the request as follows:
GET / ...headers authorization: Bearer token, Bearer token
If you send the header in lowercase it works as expected
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
If you create the client like so:
Ends up sending the request as follows:
If you send the header in lowercase it works as expected
The text was updated successfully, but these errors were encountered: