From ccf8c32dd1535d3903d67c9d8c500e347a9707c5 Mon Sep 17 00:00:00 2001 From: Steve Barber Date: Wed, 6 Dec 2017 11:58:56 -0500 Subject: [PATCH] Fix deprecated use of res.send --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 1c84390..d54e85a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -30,7 +30,7 @@ module.exports = function (ref, action) { } hookshot.emit('hook', payload); hookshot.emit(payload.ref, payload); - res.send(202, 'Accepted\n'); + res.sendStatus(202); }); if (arguments.length == 1) {