Skip to content
Myr

add deprecation message to res.send(body, status)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 2cccbc1 · Browse files · 2 files+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−0 removed

  • other:+2 added−0 removed

2 files+2 added−0 removed

modified:lib/response.js+1 added
90 unmodified lines
91 // allow status / body92 if (2 == arguments.length) {93 // res.send(body, status) backwards compat94 if ('number' != typeof body && 'number' == typeof arguments[1]) {95 deprecate('res.send(body, status): Use res.send(status, body) instead');96 this.statusCode = arguments[1];97 } else {98 this.statusCode = body;99 body = arguments[1];
677 unmodified lines
modified:History.md+1 added
1unreleased2==========34 * add deprecation message to non-plural `req.accepts*`5 * add deprecation message to `res.send(body, status)`6 * deprecate things with `depd` module7 * fix behavior when handling request without routes8 * fix handling when `route.all` is only route9 * restore `req.params` after invoking router
1683 unmodified lines