-
Notifications
You must be signed in to change notification settings - Fork 31
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
Missing headers #10
Comments
that looks about right, something similar works for me: headers: {
authorization: 'bearer '+token
}, This should not matter but maybe try lowercase 'authorization' and removing the Content-Type header. You can also try using FormData has an alternative: |
It didn't works. My code :
My server :
|
Ah I see the problem. The versoin on NPM is not up to date and does not have the header handling. You may want to point your npm install to the git repo, or just copy and paste it over (the only file that matters is RCTFileTransfer.m) |
You did right. Thanks it works now ! |
It would be cool if you could update version on NPM. Thanks! |
Hello,
I don't understand why i get an error "Missing Header: Authorization" from my server.
My code :
What did I do wrong ? Bad headers format ?
The text was updated successfully, but these errors were encountered: