creationix / couch-client

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

Add port to host header #30

Closed sgentle closed 13 years ago

sgentle commented 13 years ago

As per RFC2616:

A "host" without any trailing port information implies the default port for the service requested (e.g., "80" for an HTTP URL)

This is important for couchdb servers with virtual hosts enabled, since virtual host directives look like host:port = url and rely on the HTTP host header being sent in its entirety.