From 205864a5a8614a21aed3e8a138d58afd9e9348be Mon Sep 17 00:00:00 2001 From: nalbam Date: Mon, 2 Sep 2019 11:58:46 +0900 Subject: [PATCH] 399 --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index af78f2d..c50c091 100644 --- a/server.js +++ b/server.js @@ -44,7 +44,7 @@ app.get('/times/:league', function (req, res) { } }; request(options, function (err, response, body) { - if (response.statusCode < 200 || response.statusCode > 299) { + if (response.statusCode < 200 || response.statusCode > 399) { return res.status(response.statusCode).json({}); } return res.status(200).json(JSON.parse(body)); @@ -63,7 +63,7 @@ app.post('/times', function (req, res) { request.post(options, function (err, response, body) { console.log('times body res : ', body); - if (response.statusCode < 200 || response.statusCode > 299) { + if (response.statusCode < 200 || response.statusCode > 399) { return res.status(response.statusCode).json({}); } return res.status(200).json(JSON.parse(body));