Skip to content

Commit

Permalink
fix(http): use Uint8Array instead of Buffer for browser support
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-bechara committed Apr 15, 2024
1 parent 595df00 commit e36bae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/http/http.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class HttpService {
}
else {
const arrayBuffer = await res.arrayBuffer();
return Buffer.from(arrayBuffer) as T;
return new Uint8Array(arrayBuffer) as T;
}
}

Expand Down

0 comments on commit e36bae8

Please sign in to comment.