Back to all

Content-Type of Responses

Greetings Everyone,

The API response is returning Content-Type: application/octet-stream. Even when we send Accept: application/json, the server continues to return application/octet-stream. Our upgraded system relies on the response Content-Type to determine how to parse the data, so it does not treat the response as JSON and returns a 500. The same request works in Postman because it does not strictly enforce the Content-Type. If the API can return Content-Type: application/json (in the response header), this should resolve the issue. Can this be accomplished somehow?

Please advise, thanks,

Joe