We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f40e27c commit a5bba35Copy full SHA for a5bba35
src/api/apiUtils.ts
@@ -52,9 +52,7 @@ const req = async (
52
headers.append('Authorization', `Bearer ${token}`);
53
}
54
55
- if (body instanceof FormData) {
56
- headers.append('Content-Type', 'multipart/form-data');
57
- } else if (body) {
+ if (!(body instanceof FormData) && body) {
58
headers.append('Content-Type', 'application/json');
59
body = JSON.stringify(body);
60
0 commit comments