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) {
|
||||
this.type = 'text';
|
||||
body = this.message || String(code);
|
||||
/* istanbul ignore else */
|
||||
if (body) this.length = Buffer.byteLength(body);
|
||||
this.length = Buffer.byteLength(body);
|
||||
return res.end(body);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue