You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
From this I get that a request without a payload shouldn't have a mandatory content type.
The solution seems pretty simple, just add a delete to the regex that checks the verb used. If you agree with what I stated I can open a PR for this.
The text was updated successfully, but these errors were encountered:
Hello there,
This code is setting up a Content-Type for
DELETE
requests without data.The rfc states:
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.
From this I get that a request without a payload shouldn't have a mandatory content type.
The solution seems pretty simple, just add a
delete
to the regex that checks the verb used. If you agree with what I stated I can open a PR for this.The text was updated successfully, but these errors were encountered: