Skip to content

Commit

Permalink
πŸ› Fix string sources (#137)
Browse files Browse the repository at this point in the history
- These need to be encoded as buffers
  • Loading branch information
dmihalcik-virtru authored Jan 26, 2023
1 parent b8d8b0f commit 8fda11d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tdf3/src/client/builders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class EncryptParamsBuilder {
setStringSource(string: string) {
const stream = new ReadableStream({
pull(controller) {
controller.enqueue(string);
controller.enqueue(new TextEncoder().encode(string));
controller.close();
},
});
Expand Down

0 comments on commit 8fda11d

Please sign in to comment.