From f08aceab36bdd0ffe9cc38c36d25736604c6718a Mon Sep 17 00:00:00 2001 From: Fawzi Mohamed <fawzi.mohamed@fhi-berlin.mpg.de> Date: Wed, 7 Nov 2018 13:10:23 +0100 Subject: [PATCH] fix deprecation of send(status,body) in express --- app/ProxyRouter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ProxyRouter.js b/app/ProxyRouter.js index 4554acc..f297af1 100644 --- a/app/ProxyRouter.js +++ b/app/ProxyRouter.js @@ -19,7 +19,7 @@ ProxyRouter.prototype.lookup = function(req, res, userID, isWebsocket, path, nex //logger.debug(`replacements available after ${(Date.now()-start)/1000.0}s`) if (err) { logger.error(`no replacements for ${userID} in %{path}`) - res.send(500, components.getHtmlErrorTemplate({ + res.status(500).send(components.getHtmlErrorTemplate({ error:"No replacements", msg: `lookup without visiting the entry point ${config.k8component.entryPoint.path} (${stringify(err)})` })) -- GitLab