m.request: Automatic Content-Type for non‑JSON payloads
m.request: Automatic Content-Type for non‑JSON payloads Mithril’s m.request automatically sets Content-Type: application/json when the payload is a plain JavaScript object and parses JSON responses. However, when the payload is a non‑JSON type such as FormData , Blob , or ArrayBuffer , the library sends the data without setting a Content-Type header, relying