]> Sergey Matveev's repositories - public-inbox.git/commitdiff
gzip_filter: write: use multi-arg translate
authorEric Wong <e@80x24.org>
Sat, 10 Sep 2022 08:17:25 +0000 (08:17 +0000)
committerEric Wong <e@80x24.org>
Sat, 10 Sep 2022 19:50:54 +0000 (19:50 +0000)
While we must name this function ->write for PSGI compatibility,
our own uses of it can make it operate more like writev(2)
or `print' in Perl.

lib/PublicInbox/GzipFilter.pm

index 72ab5d50392309bf87babe87f00d953851e86342..bd72afff7782057ded6269862eca462519d19559 100644 (file)
@@ -124,7 +124,7 @@ sub http_out ($) {
 
 sub write {
        # my $ret = bytes::length($_[1]); # XXX does anybody care?
-       http_out($_[0])->write(translate($_[0], $_[1]));
+       http_out($_[0])->write(translate(@_));
 }
 
 sub zfh {