Browse files

Allow CouchDB servers specified with a port number in the URL string.

  • Loading branch information...
1 parent ddf30c8 commit d2e69dd774227a36acb20798d3c77136d4f1975c @janl janl committed Aug 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cradle.js
View
2 lib/cradle.js
@@ -52,7 +52,7 @@ cradle.Connection = function Connection(/* variable args */) {
port = parseInt(a);
} else if (typeof(a) === 'object') {
options = a;
- host = host || options.host;
+ host = host || options.hostname;
port = port || options.port;
auth = options.auth;
} else {

0 comments on commit d2e69dd

Please sign in to comment.