Skip to content

Commit

Permalink
Update upload methods to allow duplex option to be passed in (#147)
Browse files Browse the repository at this point in the history
Undici >v5.12.0 requires this.
  • Loading branch information
rexmondo committed Mar 31, 2023
1 parent d3346ce commit d937be4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/packages/StorageFileApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export default class StorageFileApi {
method,
body: body as BodyInit,
headers,
...(options?.duplex ? { duplex: options.duplex } : {})
})

if (res.ok) {
Expand Down

0 comments on commit d937be4

Please sign in to comment.