From 21cdc47befd68aa180b56ff5fc777d5e40b1b34d Mon Sep 17 00:00:00 2001 From: dumok Date: Tue, 29 Nov 2016 13:02:51 +0900 Subject: [PATCH] Fix response code return 200 code when success --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 869438f..1a67500 100644 --- a/index.js +++ b/index.js @@ -41,7 +41,7 @@ http.createServer(function(req, res){ }); - res.writeHead(400, {"Content-Type": "application/json"}); + res.writeHead(200, {"Content-Type": "application/json"}); var data = JSON.stringify({"success": true}); return res.end(data);