Skip to content
Myr

refactored res.send()

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 1ddf0c8 · Browse files · 1 file+2 added−3 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+2 added−3 removed

  • other:+2 added−3 removed

1 file+2 added−3 removed

modified:lib/response.js+2 added-3 removed
69 unmodified lines
70 this.statusCode = body;71 body = arguments[1];72 }73 74 // Convert string objects to string literals75 if(body instanceof String)76 body = body.toString();74 // convert string objects to primitives75 if (body instanceof String) body = body.toString();7677 switch (typeof body) {78 // response status79 case 'number':
567 unmodified lines