Closed AimForNaN closed 7 years ago
Same issue here. Should I use axios instead ?
I cannot reproduce this issue, here is a jsfiddle: https://jsfiddle.net/sx45zrte/
I have updated the fiddle that reproduces the problem: https://jsfiddle.net/sx45zrte/1/
The POST request to /echo/json
gets redirected to /echo/json/
by the server, thats why it will become a GET. Somehow the Chrome Devtools don't show the redirect, try Firefox instead.
Using vue-resource v1.3.4.
Steps to reproduce
Minimal steps to reproduce.
The problem seems to be caused by a URL that does not end with a forward slash. Works fine if I add the forward slash at the end.
What is Expected?
If I use post(), it should be a POST request.
What is actually happening?
Gets converted into GET silently.