remove body empty detect
This commit is contained in:
parent
1edd6ec69a
commit
8b14b91bae
1 changed files with 1 additions and 2 deletions
|
@ -204,8 +204,7 @@ function *respond(next) {
|
||||||
if (null == body) {
|
if (null == body) {
|
||||||
this.type = 'text';
|
this.type = 'text';
|
||||||
body = this.message || String(code);
|
body = this.message || String(code);
|
||||||
/* istanbul ignore else */
|
this.length = Buffer.byteLength(body);
|
||||||
if (body) this.length = Buffer.byteLength(body);
|
|
||||||
return res.end(body);
|
return res.end(body);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue