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

formData.keys, .entries is not a function #1095

Closed
tranzium opened this issue Nov 12, 2021 · 0 comments · Fixed by #1097
Closed

formData.keys, .entries is not a function #1095

tranzium opened this issue Nov 12, 2021 · 0 comments · Fixed by #1097
Labels
bug Something isn't working

Comments

@tranzium
Copy link

Bug Description

When using request.formData() and obtaining a FormData object, both the "entries" and "keys" methods are not found.

Reproducible By

import { FromData } from "undici";
const formData = new FormData();
formData.append("key", "value");
console.log("entries" in formData); // false
console.log("keys" in formData); // false

Expected Behavior

console.log("entries" in formData); // true
console.log("keys" in formData); // true

Environment

miniflare --version // 2.0.0-next.3

Additional context

cloudflare/miniflare#91

@tranzium tranzium added the bug Something isn't working label Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant