Aug-16-2017, 08:00 PM
(Aug-16-2017, 07:40 PM)cmietzner Wrote: Unexpected content type received: text/html; charset=utf-8
To me, that looks like your content is right, but you're sending the wrong http header. How you change that depends entirely on what framework you're using to send the http response.
For reference: https://developer.mozilla.org/en-US/docs...ntent-Type
Instead of text/html, you want to be sending application/json, so the whole http header would be
Content-Type: application/json; charset=utf-8
.