diff --git a/lib/modules/webserver/server.js b/lib/modules/webserver/server.js index 936e96df..ad977c12 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