remove gzip pipe
This commit is contained in:
parent
d613cbca87
commit
ec0d3f0030
@ -959,9 +959,8 @@ __PACKAGE__->register_method({
|
|||||||
push @$cmd, '-e', $param->{until} if $param->{until};
|
push @$cmd, '-e', $param->{until} if $param->{until};
|
||||||
push @$cmd, '-f', PVE::Tools::shellquote($param->{startcursor}) if $param->{startcursor};
|
push @$cmd, '-f', PVE::Tools::shellquote($param->{startcursor}) if $param->{startcursor};
|
||||||
push @$cmd, '-t', PVE::Tools::shellquote($param->{endcursor}) if $param->{endcursor};
|
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";
|
or die "could not start mini-journalreader";
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@ -969,7 +968,6 @@ __PACKAGE__->register_method({
|
|||||||
fh => $fh,
|
fh => $fh,
|
||||||
stream => 1,
|
stream => 1,
|
||||||
'content-type' => 'application/json',
|
'content-type' => 'application/json',
|
||||||
'content-encoding' => 'gzip',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}});
|
}});
|
||||||
|
Loading…
Reference in New Issue
Block a user