Skip to content
Myr

res.send(undefined) returns a 204

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

closes #600

authored by Aaron Heckmann · committed by Tj Holowaychuk · parent fb38d9c · Browse files · 1 file+1 added−1 removed
This commit

State

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

Trailers

  • Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/response.js+1 added-1 removed
49 unmodified lines
50 // default status51 status = status || this.statusCode;5253 // allow 0 args as 20454 if (!arguments.length) body = status = 204;54 if (!arguments.length || undefined === body) body = status = 204;5556 // determine content type57 switch (typeof body) {58 case 'number':
347 unmodified lines