Skip to content

Commit

Permalink
Fix a typo in 5th example
Browse files Browse the repository at this point in the history
  • Loading branch information
octet-stream committed Dec 17, 2023
1 parent 924b426 commit 718ec7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ form.set("avatar", await blobFrom("path/to/an/avatar.png"), "avatar.png")
const encoder = new FormDataEncoder(form)

// Note that node-fetch@2 performs more strictness tests for Blob objects, so you may need to do extra steps before you set up request body (like, maybe you'll need to instaniate a Blob with BlobDataItem as one of its blobPart)
const blob = new BlobDataItem(enocoder) // or new Blob([new BlobDataItem(enocoder)], {type: encoder.contentType})
const blob = new BlobDataItem(encoder) // or new Blob([new BlobDataItem(encoder)], {type: encoder.contentType})

const options = {
method: "post",
Expand Down

0 comments on commit 718ec7f

Please sign in to comment.