remove gzip pipe

This commit is contained in:
Дмитрий Кустов 2024-12-09 18:58:15 +03:00
parent d613cbca87
commit ec0d3f0030

View File

@ -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',
},
},
}});