diff --git a/index.js b/index.js index 96408189..aa3021e2 100644 --- a/index.js +++ b/index.js @@ -170,7 +170,6 @@ HttpsProxyAgent.prototype.callback = function connect(req, opts, fn) { socket = new net.Socket(); socket.readable = true; - // save a reference to the concat'd Buffer for the `onsocket` callback buffers = buffered; diff --git a/test/test.js b/test/test.js index ebf0ef4d..c309c812 100644 --- a/test/test.js +++ b/test/test.js @@ -239,12 +239,15 @@ describe('HttpsProxyAgent', function() { process.env.http_proxy || 'http://localhost:' + proxyPort; - const req = http.get({ - agent: new HttpsProxyAgent(proxyUri) - }, function(res) { - assert.equal(407, res.statusCode); - req.abort(); - }); + const req = http.get( + { + agent: new HttpsProxyAgent(proxyUri) + }, + function(res) { + assert.equal(407, res.statusCode); + req.abort(); + } + ); req.on('abort', done); });