Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
fix working with vhosts that include a port number
Browse files Browse the repository at this point in the history
  • Loading branch information
Caolan McMahon committed Jun 11, 2012
1 parent 3e16c79 commit 45f1dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/couchdb.js
Expand Up @@ -146,7 +146,7 @@ CouchDB.prototype.client = function (method, path, data, callback) {
path = path.replace(/^\/\/+/, '/');

var headers = {
'Host': this.instance.hostname,
'Host': this.instance.host,
'Accept': 'application/json'
};
if (method === 'POST' || method === 'PUT') {
Expand Down

0 comments on commit 45f1dca

Please sign in to comment.