Skip to content
Myr

added status support back

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

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent c40c54f · Browse files · 1 file+3 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

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:lib/response.js+3 added
508 unmodified lines
509 if ('function' == typeof options) {510 fn = options, options = null;511 }512513 // status option514 if (options.status) this.statusCode = options.status;515516 // default callback to respond517 fn = fn || function(err, str){518 if (err) return req.next(err);519 self.send(str);
5 unmodified lines