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:
parent
438d7f7c5c
commit
2d5e06918b
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue