Closed moolen closed 5 years ago
calling .send(), .json() and .jsonp() does not yield the response object but it should.
.send()
.json()
.jsonp()
i.e. having a request handler which calls res.json({}).end() will fail.
res.json({}).end()
This PR addresses this issue.
@moolen Thanks for your PR!
calling
.send()
,.json()
and.jsonp()
does not yield the response object but it should.i.e. having a request handler which calls
res.json({}).end()
will fail.This PR addresses this issue.