Skip to content

Commit

Permalink
fix type lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Dec 17, 2024
1 parent 159fe47 commit b646198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node/src/proxy/parse-proxy-response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function parseProxyResponse(socket: Readable): Promise<{ connect: Connect
return;
}

const headerParts = buffered.slice(0, endOfHeaders).toString('ascii').split('\r\n');
const headerParts = buffered.subarray(0, endOfHeaders).toString('ascii').split('\r\n');
const firstLine = headerParts.shift();
if (!firstLine) {
socket.destroy();
Expand Down

0 comments on commit b646198

Please sign in to comment.