diff options
Diffstat (limited to 'lib/okpush')
| -rw-r--r-- | lib/okpush/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
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 }, |
