Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #20 from scttnlsn/master

Ensure port is of type 'number'
  • Loading branch information...
commit db3f8b5a825818b575761a84048902586f67bb82 2 parents 041e717 + 9aa1a0d
@kcbanner authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/connect-mongo.js
View
2  lib/connect-mongo.js
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.