I would like to interface with an external API via LSL, but it only responds with the content type of application/x-ndjson. The response data is actionable data that LSL is capable of processing, however as the content-type is not on the strict list of types that HTTP_ACCEPT permits, it returns status 415 "Unsupported or unknown Content-Type."
The header from the API I want to use is
Content-Type: application/x-ndjson; charset=utf-8
Sample return data
{
"id": "9mkQIvL8rnrn",
"time": 1740453264,
"expires": 1740496464,
"event": "message",
"topic": "demo",
"message": "a demo message"
}
{
"id": "uOim1bYhnisq",
"time": 1740453267,
"expires": 1740496467,
"event": "message",
"topic": "demo",
"message": "a demo message"
}
{
"id": "wFhpksR0U2Lc",
"time": 1740453267,
"expires": 1740496467,
"event": "message",
"topic": "demo",
"message": "a demo message"
}