From 38c87c02fc07f5bf090c97f7169fa5f6d1236163 Mon Sep 17 00:00:00 2001 From: Elad Shaham Date: Mon, 23 Jun 2014 16:02:54 +0300 Subject: [PATCH] remove space which messes up the url local variable --- config/express.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/express.js b/config/express.js index 5eb446a442..1614cc63e4 100755 --- a/config/express.js +++ b/config/express.js @@ -39,7 +39,7 @@ module.exports = function(db) { // Passing the request url to environment locals app.use(function(req, res, next) { - res.locals.url = req.protocol + ':// ' + req.headers.host + req.url; + res.locals.url = req.protocol + '://' + req.headers.host + req.url; next(); });