From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 038E61F6AA for ; Sat, 10 Sep 2022 08:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1662797938; bh=RpprhGl7Q5KzgAT8Grg5dLZJ7dL6+TFoaJvQDIBAuoY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LLU382sVXJT1eBtWLEJxBQSUmC0G5Pnrqb78v4e4eIrvsitX6ifKJkGHDnHD5A77m OluAbl80D9YWHGgffGuakgfbXq47P1E6b8gVrtAa63WX1uLmDaiisS1KRkHCMDFOo1 rMJVf2WU6hyyHngu58somglKlMVBQ+mU0Iwx/9eM= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 34/38] gzip_filter: write: use multi-arg translate Date: Sat, 10 Sep 2022 08:17:25 +0000 Message-Id: <20220910081729.2011934-35-e@80x24.org> In-Reply-To: <20220910081729.2011934-1-e@80x24.org> References: <20220910081729.2011934-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/GzipFilter.pm b/lib/PublicInbox/GzipFilter.pm index 72ab5d50..bd72afff 100644 --- a/lib/PublicInbox/GzipFilter.pm +++ b/lib/PublicInbox/GzipFilter.pm @@ -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 {