change content type of logdiff to ->response->content_type('application/json');
This commit is contained in:
parent
a2a187b36a
commit
9ce95d31f1
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue