From 32c6d3935805e6fc24eaa064b7993187fcf8a86e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=A6?= Date: Tue, 22 Aug 2017 21:57:11 +0800 Subject: [PATCH] fixes #1438 (#1439) --- lib/core/renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/renderer.js b/lib/core/renderer.js index c1f4059943..196a7a6441 100644 --- a/lib/core/renderer.js +++ b/lib/core/renderer.js @@ -315,7 +315,7 @@ export default class Renderer extends Tapable { const sendResponse = (content, type = 'text/html') => { // Set Headers res.statusCode = err.statusCode - res.statusMessage = this.options.debug ? err.message : err.name + res.statusMessage = err.name res.setHeader('Content-Type', type + '; charset=utf-8') res.setHeader('Content-Length', Buffer.byteLength(content))