We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3965653 commit 9b7ac19Copy full SHA for 9b7ac19
packages/node/src/proxy/parse-proxy-response.ts
@@ -89,7 +89,7 @@ export function parseProxyResponse(socket: Readable): Promise<{ connect: Connect
89
return;
90
}
91
92
- const headerParts = buffered.slice(0, endOfHeaders).toString('ascii').split('\r\n');
+ const headerParts = buffered.subarray(0, endOfHeaders).toString('ascii').split('\r\n');
93
const firstLine = headerParts.shift();
94
if (!firstLine) {
95
socket.destroy();
0 commit comments