http icon indicating copy to clipboard operation
http copied to clipboard

Unable to Pass Data in body When using Delete method

Open auedbaki opened this issue 4 years ago • 2 comments

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

auedbaki avatar Jan 24 '21 15:01 auedbaki

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

atinux avatar Jan 25 '21 12:01 atinux

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.

Al-Rozhkov avatar Sep 15 '22 12:09 Al-Rozhkov