From 13c7ca61392acecff026a079623ab0d928ea0d93 Mon Sep 17 00:00:00 2001 From: ziyunfei <446240525@qq.com> Date: Sat, 6 May 2017 01:27:11 +0800 Subject: [PATCH] res.type=: remove no-op code (#980) --- lib/response.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/response.js b/lib/response.js index 0e77207..5046395 100644 --- a/lib/response.js +++ b/lib/response.js @@ -305,7 +305,7 @@ module.exports = { */ set type(type) { - type = getType(type) || false; + type = getType(type); if (type) { this.set('Content-Type', type); } else {