I\'m trying to set the content-type header for a JSON response accessed with an AJAX GET request. I\'ve followed tutorials on blogs and the bakery but I always receive \'text/ht
I am not sure (and, to be honest, I've never used CakePHP), but you may want to try to specify a second argument in the setContent method..
replace this:
$this->RequestHandler->setContent('json')
with this:
$this->RequestHandler->setContent('json', 'text/x-json');
see this file for an example..