From 2efcef1cee5425bd70b7c2fe0bb4a12b6797d54b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Fri, 6 Jan 2017 11:54:52 +0000 Subject: [PATCH] ping: use .send instead of .end --- routes/ping.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/ping.js b/routes/ping.js index 0f0e079..49e584c 100644 --- a/routes/ping.js +++ b/routes/ping.js @@ -16,8 +16,8 @@ router.get('/', function(req, res) { res.set('Content-Type', 'application/json') .set(200) - .end('{ "operation": "ping",' + - ' "message": "Thanks! Live long and prosper!" }'); + .send('{ "operation": "ping",' + + ' "message": "Thanks! Live long and prosper!" }'); update_pkg_db(); update_r_db();