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 d13ffb5 commit 9ffe90dCopy full SHA for 9ffe90d
lib/fetch/body.js
@@ -71,7 +71,7 @@ function extractBody (object, keepalive = false) {
71
72
// Set source to a copy of the bytes held by object.
73
source = new Uint8Array(object)
74
- } else if (util.isFormDataLike(object)) {
+ } else if (object instanceof FormData || util.isFormDataLike(object)) {
75
const boundary = '----formdata-undici-' + Math.random()
76
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
77
0 commit comments