[dist] 1.3.5
* fixes bug in 0.4.12
diff --git a/nano.js b/nano.js
index dcd5ca7..d566878 100644
--- a/nano.js
+++ b/nano.js
@@ -45,6 +45,7 @@
, path_array
, db
, auth
+ , port
;
/****************************************************************************
@@ -644,8 +645,10 @@
// nano('http://couch.nodejitsu.com') should return a nano object
if(path.pathname && path_array.length > 0) {
auth = path.auth ? path.auth + '@' : '';
+ port = path.port ? ':' + path.port : '';
db = path_array[0];
- cfg.url = u.format({protocol:path.protocol,host: auth + path.host});
+ cfg.url = u.format(
+ {protocol:path.protocol,host: auth + path.hostname + port});
return document_module(db);
}
else { return public_functions; }
diff --git a/package.json b/package.json
index b773040..05940be 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
, "description" : "minimalistic couchdb driver for node.js"
, "homepage" : "http://github.com/dscape/nano"
, "repository" : "git://github.com/dscape/nano"
-, "version" : "1.3.4"
+, "version" : "1.3.5"
, "author" : "Nuno Job <nunojobpinto@gmail.com> (http://nunojob.com)"
, "contributors" :
[ "Thiago Arrais <thiago.arrais@gmail.com> (http://thiagoarrais.com)"