From 8b14b91bae7fe9302eaefaecbacb67a1f51e494c Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Sun, 29 Mar 2015 11:53:54 +0800 Subject: [PATCH] remove body empty detect --- lib/application.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/application.js b/lib/application.js index ef19e7b..9cf68d8 100644 --- a/lib/application.js +++ b/lib/application.js @@ -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); }