Skip to content

Commit

Permalink
chore(blob): add small comment on duplex effect (#654)
Browse files Browse the repository at this point in the history
add small comment on duplex effect
  • Loading branch information
vvo authored Apr 8, 2024
1 parent 2d8a51b commit b032b07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/blob/src/multipart/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export function uploadPart({
body: part.blob as BodyInit,
// required in order to stream some body types to Cloudflare
// currently only supported in Node.js, we may have to feature detect this
// note: this doesn't send a content-length to the server
duplex: 'half',
},
options,
Expand Down
1 change: 1 addition & 0 deletions packages/blob/src/put.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export function createPutMethod<TOptions extends PutCommandOptions>({
headers,
// required in order to stream some body types to Cloudflare
// currently only supported in Node.js, we may have to feature detect this
// note: this doesn't send a content-length to the server
duplex: 'half',
},
options,
Expand Down

0 comments on commit b032b07

Please sign in to comment.