-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Incorrect headers #25
Comments
I confirm the content-type header is for sure wrong, json requests (axios default) are sent with |
I'm having the issue in v2.0/v1.3.7. I'll willing to help if someone can offer some guidence. :) |
friendly ping @anthonygauthier :) |
So I know this is an old issue, but I've been trying to reproduce this locally without any success. Any time I make a request to a service using EDIT: My test cases actually catch all the |
it seems only happen with the non-get requests. just made a simple repro: https://github.com/aladdin-add/repros/tree/repro-axios-curlirize-issue25 |
I also had the same issue in NestJS so I added the content-type during the module registration as follows and it correctly added the content-type header in the curl string.
|
Hi,
Thanks for this module. I had a problem with the headers however. The default content-type isn't set correctly and the common header (
'Accept': 'application/json, text/plain, */*'
) is not included. I followed the axios code inlib/defaults.js
andlib/core/dispatchRequest.js
to come up with my own simplified version:The text was updated successfully, but these errors were encountered: