Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions packages/node/src/proxy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

/* eslint-disable @typescript-eslint/explicit-member-accessibility */
/* eslint-disable @typescript-eslint/no-unused-vars */
import assert from 'assert';
import type * as http from 'http';
import type { OutgoingHttpHeaders } from 'http';
import * as net from 'net';
Expand Down Expand Up @@ -190,8 +189,6 @@ export class HttpsProxyAgent<Uri extends string> extends Agent {
// Need to wait for the "socket" event to re-play the "data" events.
req.once('socket', (s: net.Socket) => {
debug('Replaying proxy buffer for failed request');
assert(s.listenerCount('data') > 0);

// Replay the "buffered" Buffer onto the fake `socket`, since at
// this point the HTTP module machinery has been hooked up for
// the user.
Expand Down