diff --git a/index.js b/index.js index 363ada0..768aa58 100644 --- a/index.js +++ b/index.js @@ -29,7 +29,7 @@ app.post("/track", function (req, res) { updateFile(response, body, path); }); } - if (req.body.hasOwnProperty("status")) { + if (req.body || req.body.hasOwnProperty("status")) { updateFile(res, req.body, req.query.path); } else { readbody(req, res, req.query.path)