-
Notifications
You must be signed in to change notification settings - Fork 131
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
Ignoring request body in DELETE requests #163
Comments
This has recently been called out as commonly misinterpreted
|
1 similar comment
This has recently been called out as commonly misinterpreted
|
Ignoring request body in DELETE requests
Environment Information
Current Behavior
Request body is neither parsed nor assigned to
ctx.request.body
in DELETE requests.Steps to Reproduce
console.log(ctx.request.body)
Expected Behavior
The request body should be parsed and assigned to
ctx.request.body
.Possible Solution
Follow the spec rather than only parsing request bodies in these HTTP methods.
From the spec:
As a work around, I'm just adding the
parsedMethods
option when creating instantiating the middleware, which seems to be working fine:However, it would be nice if this middleware worked as expected by default, rather than having to provide custom options.
The text was updated successfully, but these errors were encountered: