Skip to content
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

Closed
jimmywarting opened this issue Apr 20, 2021 · 5 comments
Closed

Empty formdata in response.formData() #28607

jimmywarting opened this issue Apr 20, 2021 · 5 comments

Comments

@jimmywarting
Copy link
Contributor

@jimmywarting jimmywarting commented Apr 20, 2021

This can return a empty FormData in firefox and works fine...

new Response(new FormData()).formData()

Blink & Safari don't support it (if it's empty - need to append at least one item)
Maybe add a test for this?

@foolip
Copy link
Member

@foolip foolip commented Apr 23, 2021

cc @annevk

@annevk
Copy link
Member

@annevk annevk commented Apr 26, 2021

@jimmywarting are you willing to contribute a test? And file bugs against Chrome/Safari?

@jimmywarting
Copy link
Contributor Author

@jimmywarting jimmywarting commented Apr 26, 2021

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?

@annevk
Copy link
Member

@annevk annevk commented Apr 26, 2021

@jimmywarting
Copy link
Contributor Author

@jimmywarting jimmywarting commented Apr 30, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants