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 committed Feb 1, 2017
1 parent e72d830 commit 5928bf5
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')
;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5928bf5

Please sign in to comment.