Skip to content

Commit

Permalink
Merge pull request #20 from scttnlsn/master
Browse files Browse the repository at this point in the history
Ensure port is of type 'number'
  • Loading branch information
kcbanner committed Dec 14, 2011
2 parents 041e717 + 9aa1a0d commit db3f8b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connect-mongo.js
Expand Up @@ -39,7 +39,7 @@ var MongoStore = module.exports = function MongoStore(options, callback) {
var db_url = url.parse(options.url);

if (db_url.port) {
options.port = db_url.port;
options.port = parseInt(db_url.port);
}

if (db_url.pathname != undefined) {
Expand Down

0 comments on commit db3f8b5

Please sign in to comment.