From 61136defe7bf7b0c4ad5a1324e65756ee0af7b67 Mon Sep 17 00:00:00 2001 From: uzlopak Date: Fri, 16 Aug 2024 18:52:13 +0200 Subject: [PATCH] fix: remove kInterceptors in ProxyAgent --- lib/dispatcher/proxy-agent.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/dispatcher/proxy-agent.js b/lib/dispatcher/proxy-agent.js index 7956cc5680f..8d8db35e338 100644 --- a/lib/dispatcher/proxy-agent.js +++ b/lib/dispatcher/proxy-agent.js @@ -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') @@ -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 || {}