Skip to content
Myr

fix infinite loop when res.send(status) is undefined. Closes #1623

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 c805d80 · Browse files · 1 file+4 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+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:lib/response.js+4 added
91 unmodified lines
92 body = arguments[1];93 }94 }9596 if ('number' != typeof this.statusCode) {97 this.statusCode = 200;98 }99100 switch (typeof body) {101 // response status102 case 'number':103 this.get('Content-Type') || this.type('txt');
658 unmodified lines