Ensure JSON Content-Type when proxying to SecurityService

Fixkamo-internal
Shipped
21 Aprili 2026, 00:48 UTC
Author
kamo
Commit
6dfd2ce

Organization creation returned 415 Unsupported Media Type because upstream Spring expects application/json for @RequestBody. Node fetch could omit or default Content-Type for string bodies; forwardToApi now sets it for JSON payloads, and the org POST route forwards the raw body with an explicit JSON Content-Type.

All changes

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei