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 d2333a8 commit 6cc580cCopy full SHA for 6cc580c
packages/fetch/src/utils/form-data.js
@@ -92,10 +92,10 @@ export const toFormData = async (source) => {
92
const contentType = headers?.get('Content-Type') || ''
93
94
if (contentType.startsWith('application/x-www-form-urlencoded') && body != null) {
95
- const form = new FormData();
96
- let bodyText = await source.text();
97
- new URLSearchParams(bodyText).forEach((v, k) => form.append(k, v));
98
- return form;
+ const form = new FormData();
+ let bodyText = await source.text();
+ new URLSearchParams(bodyText).forEach((v, k) => form.append(k, v));
+ return form;
99
}
100
101
const [type, boundary] = contentType.split(/\s*;\s*boundary=/)
0 commit comments