We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fe6106 commit df6f048Copy full SHA for df6f048
packages/node/src/proxy/index.ts
@@ -28,7 +28,6 @@
28
29
/* eslint-disable @typescript-eslint/explicit-member-accessibility */
30
/* eslint-disable @typescript-eslint/no-unused-vars */
31
-import assert from 'assert';
32
import type * as http from 'http';
33
import type { OutgoingHttpHeaders } from 'http';
34
import * as net from 'net';
@@ -190,8 +189,6 @@ export class HttpsProxyAgent<Uri extends string> extends Agent {
190
189
// Need to wait for the "socket" event to re-play the "data" events.
191
req.once('socket', (s: net.Socket) => {
192
debug('Replaying proxy buffer for failed request');
193
- assert(s.listenerCount('data') > 0);
194
-
195
// Replay the "buffered" Buffer onto the fake `socket`, since at
196
// this point the HTTP module machinery has been hooked up for
197
// the user.
0 commit comments