change content type of logdiff to ->response->content_type('application/json');

This commit is contained in:
Rob Vermaas 2011-10-12 13:36:20 +00:00
parent a2a187b36a
commit 9ce95d31f1

View file

@ -260,6 +260,8 @@ sub logdiff : Chained('api') PathPart('logdiff') Args(2) {
} else {
$c->response->status(404);
}
$c->response->content_type('text/x-diff');
$c->stash->{'plain'} = { data => (scalar $diff) || " " };
$c->forward('Hydra::View::Plain');
}