nuxt / http

Universal HTTP Module for Nuxt.js
https://http.nuxtjs.org
MIT License
229 stars 51 forks source link

Unable to Pass Data in body When using Delete method #163

Open auedbaki opened 3 years ago

auedbaki commented 3 years ago

When using $delete(), i want to send data in body. But no data is passing. Please tell me any fixes

atinux commented 3 years ago

I believe this is intended, see https://stackoverflow.com/questions/299628/is-an-entity-body-allowed-for-an-http-delete-request

Al-Rozhkov commented 2 years ago

I don't understand. The answer reads as follows:

The spec does not explicitly forbid or discourage it, so I would tend to say it is allowed.

So DELETE method should allow body.