From 8f6481ecf5d09010a91003182e963a1854e18f50 Mon Sep 17 00:00:00 2001 From: UnicodingUnicorn <7555ic@gmail.com> Date: Tue, 19 Feb 2019 22:49:48 +0800 Subject: [PATCH] Typo --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index df2faf6..9a48757 100644 --- a/index.js +++ b/index.js @@ -58,7 +58,7 @@ app.post('/user/:user/device/:device', (req, res) => { res.sendStatus(400); } else { console.log('Posting:'); - console.log(res.body.data); + console.log(req.body.data); console.log(`To ${req.params.user}, ${req.params.device}`); connections[req.params.user][req.params.device].write(`data: ${req.body.data}\n\n`); res.sendStatus(200);