diff --git a/index.js b/index.js index 3ee9abc..6cd2b42 100644 --- a/index.js +++ b/index.js @@ -123,6 +123,9 @@ TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { { method: 'CONNECT' , path: options.host + ':' + options.port , agent: false + , headers: { + host: options.host + ':' + options.port + } } ) if (connectOptions.proxyAuth) {