diff --git a/lib/middlewares/proxy.js b/lib/middlewares/proxy.js index f839b5b..a55db08 100644 --- a/lib/middlewares/proxy.js +++ b/lib/middlewares/proxy.js @@ -8,10 +8,10 @@ module.exports = function(app) { var proxyPath = args.P || args.proxyPath || config.server.proxyPath || process.env.proxy_path; var proxyUrl = args.U || args.proxyUrl || config.server.proxyUrl || process.env.proxy_url; - if(!proxyPath || !proxyUrl) return; + if (!proxyPath || !proxyUrl) return; // In case of multiple proxy-url options, ignore all but last. - if(Array.isArray(proxyUrl)) { + if (Array.isArray(proxyUrl)) { proxyUrl = proxyUrl[proxyUrl.length - 1]; }