Browse files

[fix] Respect the `host` property in CouchDB engine

  • Loading branch information...
1 parent a3949d6 commit bf6e4115d834ca97602923d9c21243e7ab763e52 @indexzero indexzero committed Oct 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/resourceful/engines/couchdb/engine.js
View
2 lib/resourceful/engines/couchdb/engine.js
@@ -18,7 +18,7 @@ function Connection(config) {
}
this.connection = new(cradle.Connection)({
- host: config.uri || '127.0.0.1',
+ host: config.host || config.uri || '127.0.0.1',
port: config.port || 5984,
raw: true,
cache: false,

0 comments on commit bf6e411

Please sign in to comment.