Skip to content

Commit

Permalink
fix: remove kInterceptors in ProxyAgent (#3474)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak authored Aug 16, 2024
1 parent 4955a62 commit 25d431b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/dispatcher/proxy-agent.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { kProxy, kClose, kDestroy, kInterceptors } = require('../core/symbols')
const { kProxy, kClose, kDestroy } = require('../core/symbols')
const { URL } = require('node:url')
const Agent = require('./agent')
const Pool = require('./pool')
Expand Down Expand Up @@ -40,9 +40,6 @@ class ProxyAgent extends DispatcherBase {
const { href, origin, port, protocol, username, password, hostname: proxyHostname } = url

this[kProxy] = { uri: href, protocol }
this[kInterceptors] = opts.interceptors?.ProxyAgent && Array.isArray(opts.interceptors.ProxyAgent)
? opts.interceptors.ProxyAgent
: []
this[kRequestTls] = opts.requestTls
this[kProxyTls] = opts.proxyTls
this[kProxyHeaders] = opts.headers || {}
Expand Down

0 comments on commit 25d431b

Please sign in to comment.