Skip to content

Commit 6dd8624

Browse files
committed
Update README for custom stream behavior
1 parent a3e191d commit 6dd8624

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ fetch('http://example.com', { method: 'POST', body: form })
227227
## Notes
228228

229229
- ```getLengthSync()``` method DOESN'T calculate length for streams, use ```knownLength``` options as workaround.
230+
- ```getLength(cb)``` will send an error as first parameter of callback if stream length cannot be calculated (e.g. send in custom streams w/o using ```knownLength```).
231+
- ```sbumit``` will not add `content-length` if form length is unknown or not calculable.
230232
- Starting version `2.x` FormData has dropped support for `[email protected]`.
231233

232234
## License

0 commit comments

Comments
 (0)