If I don't send a content-type Next detect body as content-type:'text/plain;charset=UTF-8' and body is a string.
If I set 'content-type': 'application/json' then body is automatically parsed to object by Next.js.
Finally, if I set 'content-type': 'application/vnd.api+json' body will be string again.
If I don't send a content-type Next detect body as
content-type:'text/plain;charset=UTF-8'
and body is a string. If I set'content-type': 'application/json'
thenbody
is automatically parsed to object by Next.js. Finally, if I set'content-type': 'application/vnd.api+json'
body will be string again.Should Kurier only allow
'content-type': 'application/vnd.api+json'
? https://jsonapi.org/format/1.1/#introduction_Originally posted by @isBatak in https://github.com/kurierjs/kurier/pull/285#discussion_r656806119_