creationix / couch-client

A minimal CouchDB client that easy and powerful
MIT License
101 stars 9 forks source link

Setting Host header incorrectly #17

Open stellaraccident opened 13 years ago

stellaraccident commented 13 years ago

I believe that line 52 where you are setting the Host header is incorrect. You want to be using the host property of the uri instead of hostname because it includes the port:

var headers = {
  "Host": uri.host
};