File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change 2828
2929/* eslint-disable @typescript-eslint/explicit-member-accessibility */
3030/* eslint-disable @typescript-eslint/no-unused-vars */
31- import assert from 'assert' ;
3231import type * as http from 'http' ;
3332import type { OutgoingHttpHeaders } from 'http' ;
3433import * as net from 'net' ;
@@ -190,8 +189,6 @@ export class HttpsProxyAgent<Uri extends string> extends Agent {
190189 // Need to wait for the "socket" event to re-play the "data" events.
191190 req . once ( 'socket' , ( s : net . Socket ) => {
192191 debug ( 'Replaying proxy buffer for failed request' ) ;
193- assert ( s . listenerCount ( 'data' ) > 0 ) ;
194-
195192 // Replay the "buffered" Buffer onto the fake `socket`, since at
196193 // this point the HTTP module machinery has been hooked up for
197194 // the user.
You can’t perform that action at this time.
0 commit comments