cordova-plugin-fetch icon indicating copy to clipboard operation
cordova-plugin-fetch copied to clipboard

Setting method to "PATCH" causes the fetch API to execute a "POST" to the server

Open kgillespieatmosphere opened this issue 4 years ago • 2 comments

So when attempt to send a PATCH request with a postBody causes the fetch API to instead send a POST instead of a PATCH.

Will dig into the code but not sure why I am getting this behavior

kgillespieatmosphere avatar Feb 17 '21 18:02 kgillespieatmosphere

https://github.com/aporat/cordova-plugin-fetch/compare/master...atmosphereiot:master

It looks like if you attach a postBody the plugin assumes you must mean a post even though patch can include a postBody in vanilla fetch

kgillespieatmosphere avatar Feb 17 '21 19:02 kgillespieatmosphere

I ran into the same problem

alexw-at avatar May 25 '21 06:05 alexw-at