diff --git a/src/lib/Hydra/Controller/API.pm b/src/lib/Hydra/Controller/API.pm index b423541d..c4915409 100644 --- a/src/lib/Hydra/Controller/API.pm +++ b/src/lib/Hydra/Controller/API.pm @@ -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'); }