Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Jul 13, 2023
1 parent e57696a commit 2fde7a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/uwebsockets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function getRequestFromUWSRequest({ req, res, fetchAPI }: GetRequestFromU
});
let multipleChunks = false;
res.onData(function (ab, isLast) {
const chunk = Buffer.from(chunk, 0, chunk.byteLength);
const chunk = Buffer.from(ab, 0, ab.byteLength);
if (!multipleChunks && isLast) {
readable.push(chunk);
} else {
Expand Down

0 comments on commit 2fde7a9

Please sign in to comment.