Skip to content

Commit e75c9eb

Browse files
committed
Remove custom boundary generator from 3rd example.
1 parent 7068ac3 commit e75c9eb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

readme.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ import {Blob} from "fetch-blob" // For this example I will use v3 of this packag
8080
import fetch from "node-fetch"
8181

8282
async function toBlob(form) {
83-
// Note that Blob will lowercase the boundary string before assign it to Blob#type property. So you may need to bring your own boundary string, which must contain only lowercase alphabetic characters.
84-
const boundary = randomBytes(16).toString("hex")
85-
const encoder = new Encoder(form, boundary)
83+
const encoder = new Encoder(form)
8684
const chunks = []
8785

8886
for await (const chunk of encoder) {

0 commit comments

Comments
 (0)