Skip to content

Commit

Permalink
KV.put Buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
chientrm committed Aug 24, 2023
1 parent fb5bd34 commit d3e97bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/proxies/kv/proxy_holder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ export class KVProxyHolder<Key extends string = string>
options?: KVNamespacePutOptions | undefined
): Promise<void> {
const data =
typeof value === 'string' || value instanceof ArrayBuffer
typeof value === 'string' ||
value instanceof ArrayBuffer ||
value instanceof Buffer
? new ReadableStream({
start(controller) {
controller.enqueue(value);
Expand Down

0 comments on commit d3e97bd

Please sign in to comment.