Skip to content
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

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

Open
kgillespieatmosphere opened this issue Feb 17, 2021 · 2 comments

Comments

@kgillespieatmosphere
Copy link

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
Copy link
Author

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

@alexw-at
Copy link

I ran into the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants