diff --git a/index.js b/index.js index b509e16..b9088ef 100644 --- a/index.js +++ b/index.js @@ -79,6 +79,7 @@ class myAgent extends https.Agent { let host = options.hostname if (!host) host = options.host let cmd = 'CONNECT ' + host + ':' + options.port + ' HTTP/1.1\r\n' + cmd += `Host: ${host}:${options.port}\r\n` if (options.proxy.auth) { // noinspection JSCheckFunctionSignatures const auth = Buffer.from(options.proxy.auth).toString('base64')