This fixes a bug with Catalyst 1.39 whereby a raw hash table would erroneously be returned for /nix-cache-info.
15 lines
330 B
Perl
15 lines
330 B
Perl
package Hydra::View::Plain;
|
|
|
|
use strict;
|
|
use warnings;
|
|
use base 'Catalyst::View::Download::Plain';
|
|
|
|
sub process {
|
|
my ($self, $c) = @_;
|
|
$c->response->content_encoding("utf-8");
|
|
$c->response->content_type('text/plain') unless $c->response->content_type() ne "";
|
|
$c->response->body($c->stash->{plain}->{data});
|
|
}
|
|
|
|
1;
|