From 328d9c7c07a70ef95b3fbcb1fcb7fa7f0ac0b101 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Wed, 3 Oct 2018 16:37:23 -0400 Subject: [PATCH] remove blockcing if --- lib/modules/webserver/server.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/modules/webserver/server.js b/lib/modules/webserver/server.js index 936e96dff..ad977c129 100644 --- a/lib/modules/webserver/server.js +++ b/lib/modules/webserver/server.js @@ -164,9 +164,6 @@ class Server { applyAPIFunction (cb, req, res) { const authToken = (!res.send) ? req.protocol : req.headers.authorization; - if (!res.send) { - return cb(req, res); - } this.events.request('authenticator:authorize', authToken, (err) => { if (err) { const send = res.send ? res.send.bind(res) : req.send.bind(req); // WS only has the first params