Skip to content

Commit e8d4c16

Browse files
committed
fix type lint
1 parent 4d60c7c commit e8d4c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node/src/proxy/parse-proxy-response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function parseProxyResponse(socket: Readable): Promise<{ connect: Connect
8989
return;
9090
}
9191

92-
const headerParts = buffered.slice(0, endOfHeaders).toString('ascii').split('\r\n');
92+
const headerParts = buffered.subarray(0, endOfHeaders).toString('ascii').split('\r\n');
9393
const firstLine = headerParts.shift();
9494
if (!firstLine) {
9595
socket.destroy();

0 commit comments

Comments
 (0)