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

Commit

Permalink
Merge pull request #100 from eshaham/meanjs
Browse files Browse the repository at this point in the history
Remove space which messes up the url local variable
  • Loading branch information
amoshaviv committed Jun 29, 2014
2 parents 9da3bc8 + 38c87c0 commit 75bf264
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 75bf264

Please sign in to comment.