Skip to content

Commit

Permalink
Inherit from http.Agent rather than events.EventEmitter
Browse files Browse the repository at this point in the history
  • Loading branch information
buschtoens authored and Hamper committed Sep 8, 2018
1 parent 05472b7 commit 8d8beeb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
, Buffer = require('safe-buffer').Buffer
Expand Down Expand Up @@ -68,7 +67,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
Expand Down

0 comments on commit 8d8beeb

Please sign in to comment.