Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
remove space which messes up the url local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
eshaham committed Jun 23, 2014
1 parent 9da3bc8 commit 38c87c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down

0 comments on commit 38c87c0

Please sign in to comment.