You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FormData set as the body: BodyInit of the RequestInit passed to the Request constructor should behave the same way as the body: BodyInit of the RequestInit as the second arg to fetch(input, init)
Currently it doesn't, sending a request body with the text [object FormData]
const formData = new FormData();
formData.append('foo', 'bar');
const res = await fetch(new Request('http://example.com', { method: 'POST', body: formData }));
// request.text() on the server side will be "[object FormData]", request.formData() will be empty
FormData
set as thebody: BodyInit
of theRequestInit
passed to theRequest
constructor should behave the same way as thebody: BodyInit
of theRequestInit
as the second arg tofetch(input, init)
Currently it doesn't, sending a request body with the text
[object FormData]
deno 1.8.2 (release, x86_64-apple-darwin)
v8 9.0.257.3
typescript 4.2.2
The text was updated successfully, but these errors were encountered: