Skip to content

Commit 224c65f

Browse files
committed
let browser handle form data content-type
1 parent 23e36df commit 224c65f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class Http {
8787
if (data && method !== 'GET') {
8888
if (data instanceof FormData) {
8989
init.body = data;
90-
init.headers.set('Content-Type', 'multipart/form-data');
90+
init.headers.delete('Content-Type');
9191
} else {
9292
init.body = JSON.stringify(data, null, 2);
9393
}

0 commit comments

Comments
 (0)