Closed nam-edi closed 6 years ago
Thanks for submitting an issue. This currently works as it is by design, basing on the REST best practices. Although sending body in DELETE is not explicitly forbidden, it is not recommended.
According to RFC 7231, "Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content":
A payload within a DELETE request message has no defined semantics; sending a payload body on a DELETE request might cause some existing implementations to reject the request.
Please create a new issue describing the real-world use-case, that possibly needs this to be compromised. For discussion on the topic, see e.g. Stack Overflow discussion on Is an entity body allowed for an HTTP DELETE request?.
I looked at the code and it seems impossible to use Delete with a body: