Closed z38 closed 7 years ago
When querystring is used to parse the request body, req.body does not inherit from Object.prototype.
req.body
Object.prototype
This patch fixes the call to hasOwnProperty in the same as we already did it for the URL query extractor (see #59).
hasOwnProperty
Hey, @themikenicholson, could you take a look at this? I'm having a problem in my library which seems to be solved by this PR.
Reference: https://github.com/diegohaz/generator-rest/issues/5#issuecomment-252917751
When querystring is used to parse the request body,
req.body
does not inherit fromObject.prototype
.This patch fixes the call to
hasOwnProperty
in the same as we already did it for the URL query extractor (see #59).