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 send post method in "request" function from Axios instance #723
Comments
I've got the same problem. Here is the code. The I'm not sure whether that line matters. |
I have tested by modifying this line https://github.com/mzabriskie/axios/blob/master/lib/core/Axios.js#L37 into |
I also have this issue. It seems to me that |
I even have this with a normal POST request:
Its really strange. Chrome/Safari tell me that it is a XHR GET request. |
Right, it seems we should move the default method to defaults: config = utils.merge(defaults, this.defaults, { method: 'get' }, config); Have you considered creating a PR? Thanks for reporting. |
I am experiencing this as well. When attempting to use both |
Fixed in #1342 |
When I try to send POST method using this code:
It send GET method instead of POST.
I think this line https://github.com/mzabriskie/axios/blob/master/lib/core/Axios.js#L37 should be:
config = utils.merge(defaults, this.defaults, config);
The text was updated successfully, but these errors were encountered: