From 024ac8b81b003c0aef94d80b05dc920a0954c54c Mon Sep 17 00:00:00 2001 From: MofeLee Date: Mon, 22 Aug 2016 03:30:56 +0800 Subject: [PATCH] set statusCode to 200 (#94) --- middleware.js | 1 + 1 file changed, 1 insertion(+) diff --git a/middleware.js b/middleware.js index 0cb1b2f25..6710333cd 100644 --- a/middleware.js +++ b/middleware.js @@ -216,6 +216,7 @@ module.exports = function(compiler, options) { res.setHeader(name, options.headers[name]); } } + res.statusCode = 200; if (res.send) res.send(content); else res.end(content); }