Skip to content
Myr

Fix res.send to mention res.sendStatus

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 6f31218 · Browse files · 2 files+2 added−1 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−1 removed

  • other:+2 added−1 removed

2 files+2 added−1 removed

modified:lib/response.js+1 added-1 removed
107 unmodified lines
108 if (!this.get('Content-Type')) {109 this.type('txt');110 }111112 deprecate('res.send(status): Use res.status(status).end() instead');112 deprecate('res.send(status): Use res.sendStatus(status) instead');113 this.statusCode = chunk;114 chunk = http.STATUS_CODES[chunk];115 }116
855 unmodified lines
modified:History.md+1 added
1unreleased2==========34 * Fix `res.send(status)` to mention `res.sendStatus(status)`5 * Use `content-disposition` module for `res.attachment`/`res.download`6 - Sends standards-compliant `Content-Disposition` header7 - Full Unicode support8 * deps: etag@~1.5.0
2363 unmodified lines