[nano] 1.1.5
fixes bug in 0.4 vs 0.6 api incompatibility
diff --git a/nano.js b/nano.js
index 28d6b59..72af804 100644
--- a/nano.js
+++ b/nano.js
@@ -581,7 +581,7 @@
if(path.pathname && !_.isEmpty(path.pathname.split('/')[1])) {
var auth = path.auth ? path.auth + '@' : '';
db = path.pathname.split('/')[1];
- cfg.url = path.protocol + '//' + auth + path.host; // reset url
+ cfg.url = path.protocol + '//' + auth + path.hostname; // reset url
return document_module(db);
}
else { return public_functions; }
diff --git a/package.json b/package.json
index 9ab6743..aeda67c 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.1.4"
+, "version" : "1.1.5"
, "author" : "Nuno Job <nunojobpinto@gmail.com> (http://nunojob.com)"
, "contributors" :
[ "Thiago Arrais <thiago.arrais@gmail.com> (http://thiagoarrais.com)"