Skip to content

Commit

Permalink
fix: set duplex mode on upload stream
Browse files Browse the repository at this point in the history
  • Loading branch information
birtles committed Nov 27, 2023
1 parent 01155a1 commit 9c81d27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ async function upload({ accessToken, file, productId }) {
Authorization: `Bearer ${accessToken}`,
'Content-Type': 'application/zip',
},
// @ts-expect-error
duplex: 'half',
method: 'POST',
body: file,
}
Expand Down

0 comments on commit 9c81d27

Please sign in to comment.