We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c122a7d commit da499daCopy full SHA for da499da
readme.md
@@ -35,7 +35,7 @@ const options = {
35
// Create a Readable stream from the Encoder.
36
// You can omit usage of `Readable.from` for HTTP clients whose support async iterables.
37
// The Encoder will yield FormData content portions encoded into the multipart/form-data format as node-fetch consumes the stream.
38
- body: Readable.from(encoder)
+ body: Readable.from(encoder.encode()) // or Readable.from(encoder)
39
}
40
41
const response = await fetch("https://httpbin.org/post", options)
0 commit comments