Fix some warnings
This commit is contained in:
@ -6,7 +6,8 @@ use base 'Catalyst::View::Download::Plain';
|
||||
|
||||
sub process {
|
||||
my ($self, $c) = @_;
|
||||
$c->res->content_encoding("utf-8");
|
||||
$c->response->content_encoding("utf-8");
|
||||
$c->response->content_type('text/plain') unless $c->response->content_type() ne "";
|
||||
$self->SUPER::process($c);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user