From 5928bf5616fecc01447848daee02fd4215fcaa91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Buscht=C3=B6ns?= Date: Wed, 1 Feb 2017 11:49:16 +0100 Subject: [PATCH] Inherit from http.Agent rather than events.EventEmitter Fixes #23 --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 68013ac..5f6bd2c 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,6 @@ var net = require('net') , tls = require('tls') , http = require('http') , https = require('https') - , events = require('events') , assert = require('assert') , util = require('util') ; @@ -67,7 +66,7 @@ function TunnelingAgent(options) { self.removeSocket(socket) }) } -util.inherits(TunnelingAgent, events.EventEmitter) +util.inherits(TunnelingAgent, http.Agent) TunnelingAgent.prototype.addRequest = function addRequest(req, options) { var self = this