From f8257aa6ab3158a328825345a9c0440649b2e791 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 23 Sep 2017 20:20:26 +0200 Subject: put in dev mode for a moment --- lib/okpush/index.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/okpush/index.js b/lib/okpush/index.js index 391f64f9..9ad6307a 100644 --- a/lib/okpush/index.js +++ b/lib/okpush/index.js @@ -118,6 +118,9 @@ function OKPush (options) { router.post('/custom', bodyParser.urlencoded({ extended: false }), function (req, res) { var message = req.body.message var url = req.body.url + if (! message || ! url) { + return res.sendStatus(500) + } var opt = { alert: message, payload: { 'url': url }, -- cgit v1.2.3-70-g09d2