Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Open
muralive opened this Issue · 0 comments

1 participant

@muralive

index.js:
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.

@jca258 jca258 referenced this issue from a commit in ricardocasares/node-scoped-http-client
@jca258 jca258 fixes technoweenie/node-scoped-http-client#10 4e829cf
@jca258 jca258 referenced this issue from a commit in ricardocasares/node-scoped-http-client
@jca258 jca258 fixes technoweenie/node-scoped-http-client#10 62acd5a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.