Skip to content

Commit d937be4

Browse files
authored
Update upload methods to allow duplex option to be passed in (#147)
Undici >v5.12.0 requires this.
1 parent d3346ce commit d937be4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/packages/StorageFileApi.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export default class StorageFileApi {
101101
method,
102102
body: body as BodyInit,
103103
headers,
104+
...(options?.duplex ? { duplex: options.duplex } : {})
104105
})
105106

106107
if (res.ok) {

0 commit comments

Comments
 (0)