Hydra::View::Plain: Explicitly set the response body.

This fixes a bug with Catalyst 1.39 whereby a raw hash table would
erroneously be returned for /nix-cache-info.
This commit is contained in:
Ludovic Courtès 2013-07-12 16:53:48 +02:00
parent 438d7f7c5c
commit 2d5e06918b

View file

@ -8,7 +8,7 @@ sub process {
my ($self, $c) = @_;
$c->response->content_encoding("utf-8");
$c->response->content_type('text/plain') unless $c->response->content_type() ne "";
$self->SUPER::process($c);
$c->response->body($c->stash->{plain}->{data});
}
1;