Skip to content

Commit b2684de

Browse files
authored
fix(proxy-agent): add missing return after callback-call (#4553)
1 parent 5b55d88 commit b2684de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/dispatcher/proxy-agent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ class ProxyAgent extends DispatcherBase {
165165
if (statusCode !== 200) {
166166
socket.on('error', noop).destroy()
167167
callback(new RequestAbortedError(`Proxy response (${statusCode}) !== 200 when HTTP Tunneling`))
168+
return
168169
}
169170
if (opts.protocol !== 'https:') {
170171
callback(null, socket)

0 commit comments

Comments
 (0)