How do I get cppcms to return json objects with the application/json content
type rather than text/html
Using the 'div' example, response is received fine and if I look at the net
traffic (eg using fiddler), I note it has the correct structure but wrong
content type.
This means jquery's ajax methods reject it with 'Invalid Content type'. Do I
need to have a mime type configured somewhere?
Thanks
ROnnie
|