couch-client icon indicating copy to clipboard operation
couch-client copied to clipboard

Setting Host header incorrectly

Open stellaraccident opened this issue 14 years ago • 0 comments

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
};

stellaraccident avatar Mar 21 '11 06:03 stellaraccident