Skip to content

Commit

Permalink
Hacky overwrite to allow for connections to other hostname/port than …
Browse files Browse the repository at this point in the history
…the one specified in the requested URL
  • Loading branch information
steffentchr committed Aug 25, 2011
1 parent 9354d6b commit 501adff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/restler.js
Expand Up @@ -57,8 +57,8 @@ function Request(uri, options) {
this.headers['Authorization'] = oauth.signature(this.url, this.options);

this.request = proto.request({
host: this.url.hostname,
port: this.url.port,
host: this.options.hostname||this.url.hostname,
port: this.options.port||this.url.port,
path: this._fullPath(),
method: this.options.method,
headers: this.headers
Expand Down

0 comments on commit 501adff

Please sign in to comment.