Permalink
Browse files

Merge pull request #182 from janl/master

Allow CouchDB servers specified with a port number in the URL string.
  • Loading branch information...
2 parents ddf30c8 + d2e69dd commit 85a4f0790f552b1b62f859406b3e0ccc26ed0758 @cloudhead cloudhead 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 85a4f07

Please sign in to comment.