This commit is contained in:
seb
2026-09-18 07:37:25 +02:00
parent a537c2f72d
commit dd13f736c0
5 changed files with 75 additions and 6 deletions

View File

@@ -406,8 +406,10 @@ export class ApiClient {
const headers = { ...extraHeaders };
let payload;
if (body !== undefined) {
if (raw) {
headers['Content-Type'] = contentType;
if (typeof FormData !== 'undefined' && body instanceof FormData) {
payload = body;
} else if (raw) {
if (contentType) headers['Content-Type'] = contentType;
payload = body;
} else {
headers['Content-Type'] = contentType || 'application/json';