Right now the API returns text/html as the content type in responses.
I'm guessing this is because playdar_request_handler::serve_dynamic does this:
rep.add_header( "Content-Type", "text/html" );
Even though the API plugin does this
resp.add_header( "Content-Type", req.getvar_exists("jsonp") ?
"text/plain; charset=utf-8" );
ah, i think add_header has a third param, if you pass "false" it won't nuke existing headers
Nope, needs a closer look.
wasn't being set in the non-authed case