Skip to content

Commit

Permalink
use the hostname instead of host
Browse files Browse the repository at this point in the history
  • Loading branch information
bomsy committed Aug 8, 2016
1 parent d7ed28b commit 92e2524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapters/http.js
Expand Up @@ -81,7 +81,7 @@ module.exports = function httpAdapter(config) {
}

if (proxy) {
options.host = proxy.host;
options.host = proxy.hostname;
options.port = proxy.port;
options.path = parsed.protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path;
}
Expand Down

0 comments on commit 92e2524

Please sign in to comment.