couch-client
couch-client copied to clipboard
Setting Host header incorrectly
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
};