diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm index 0d4fba2..a9f3fb1 100644 --- a/PVE/API2/Nodes.pm +++ b/PVE/API2/Nodes.pm @@ -959,9 +959,8 @@ __PACKAGE__->register_method({ push @$cmd, '-e', $param->{until} if $param->{until}; push @$cmd, '-f', PVE::Tools::shellquote($param->{startcursor}) if $param->{startcursor}; push @$cmd, '-t', PVE::Tools::shellquote($param->{endcursor}) if $param->{endcursor}; - push @$cmd, ' | gzip '; - open(my $fh, "-|", join(' ', @$cmd)) + open(my $fh, "-|:encoding(utf-8)", join(' ', @$cmd)) or die "could not start mini-journalreader"; return { @@ -969,7 +968,6 @@ __PACKAGE__->register_method({ fh => $fh, stream => 1, 'content-type' => 'application/json', - 'content-encoding' => 'gzip', }, }, }});