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 4d60c7c commit e8d4c16Copy full SHA for e8d4c16
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