-
Notifications
You must be signed in to change notification settings - Fork 491
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
Cannot specifiy custom headers #2
Comments
Thanks, this will be in the next release coming up shortly :) |
This hasn't landed yet, but is on the way. |
How soon might this be implemented? Currently my requests are sent out with Content-Type: text/plain, while the REST service is expecting application/json. I imagine it could be something added to the new AuthHttp({...}) constructor, so it's setup once. Do you accept pull requests? I could give it a shot. |
I've just submitted a pull request, allowing custom headers. |
You need to be able to set headers on the fly, not during setup. I suppose I could rework my fork and submit a pr with code I've already written to do this. |
I was thinking that too, but it would be useful to have both options. |
Is there any progress on this? Any work around for those of us who need to change this? I, like Nick, have a backend expecting application/json. |
Hey @louisscruz , the changes to make it work have been committed here and I'll aim to release after some more tests tomorrow. |
You can always tell npm to load the tarball from github, or the repo itself (assuming you are using git) |
v0.1.4 now published |
It is not currently possible to use the full http api you are wrapping, as I cannot set portions of my request object.
The text was updated successfully, but these errors were encountered: