File tree 1 file changed +0
-3
lines changed
packages/node-experimental/src/proxy
1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change 28
28
29
29
/* eslint-disable @typescript-eslint/explicit-member-accessibility */
30
30
/* eslint-disable @typescript-eslint/no-unused-vars */
31
- import assert from 'assert' ;
32
31
import type * as http from 'http' ;
33
32
import type { OutgoingHttpHeaders } from 'http' ;
34
33
import * as net from 'net' ;
@@ -188,8 +187,6 @@ export class HttpsProxyAgent<Uri extends string> extends Agent {
188
187
// Need to wait for the "socket" event to re-play the "data" events.
189
188
req . once ( 'socket' , ( s : net . Socket ) => {
190
189
debug ( 'Replaying proxy buffer for failed request' ) ;
191
- assert ( s . listenerCount ( 'data' ) > 0 ) ;
192
-
193
190
// Replay the "buffered" Buffer onto the fake `socket`, since at
194
191
// this point the HTTP module machinery has been hooked up for
195
192
// the user.
You can’t perform that action at this time.
0 commit comments