New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty formdata in response.formData() #28607
Comments
cc @annevk |
@jimmywarting are you willing to contribute a test? And file bugs against Chrome/Safari? |
file bug report to chrome/safari would be easy - i can do that. Any pointers for writing a test, like which file to write it in? |
That's great, thanks! You could add a new There's some existing tests in https://github.com/web-platform-tests/wpt/blob/master/fetch/api/response/response-consume.html and https://github.com/web-platform-tests/wpt/blob/master/fetch/api/request/request-consume.any.js but they're fairly large already. |
|
This PR adds support for empty `FormData` parsing in `Response`/`Request` ```js new Response(new FormData()).formData() ``` ref: web-platform-tests/wpt#28607
This PR adds support for empty `FormData` parsing in `Response`/`Request` ```js new Response(new FormData()).formData() ``` ref: web-platform-tests/wpt#28607
This can return a empty FormData in firefox and works fine...
Blink & Safari don't support it (if it's empty - need to append at least one item)
Maybe add a test for this?
The text was updated successfully, but these errors were encountered: