Port being ignored in Host header when making a request #10

muralive opened this Issue Sep 17, 2012 · 0 comments


None yet
1 participant

try {
headers = extend({}, this.options.headers);
sendingData = method.match(/^P/) && reqBody && reqBody.length > 0;
headers.Host = this.options.hostname;
if (sendingData) {
headers['Content-Length'] = reqBody.length;

headers.Host = this.options.hostname; ???
what if there is a port?

There is no way for me to override that header when calling request() so there is no workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment