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=-3.3 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id E2B071F9F3 for ; Mon, 25 Oct 2021 06:32:54 +0000 (UTC) Date: Mon, 25 Oct 2021 08:32:52 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=t-8ch.de; s=mail; t=1635143572; bh=vKwwh0lVIkETftS6WPRj9s/NkYgPJCFuQdt+cMQYnWA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Fl/Xjh+dmQnZGPJelb1knoX4R7gEz+82JQkFofNbN83NtAMDFnTUq+rtnK4hwX3mt 3PoUZDi44nNDmXZHbk8KAXvb4mfqN+17JPwbprkuWMSwfvGWOXlqCUWMlVgAhKQ91a apUo8fkJLsLXjn9TCQTHKMzMSdXWeHR6uASjJgt4= From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Eric Wong Cc: meta@public-inbox.org Subject: Re: [PATCH 2/2] www: $MSGID/raw: set charset in HTTP response Message-ID: <58d9d4aa-7043-4854-89f9-37fb45def678@t-8ch.de> References: <20211025024553.14875-1-e@80x24.org> <20211025024553.14875-3-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211025024553.14875-3-e@80x24.org> Jabber-ID: thomas@t-8ch.de X-Accept: text/plain, text/html;q=0.2, text/*;q=0.1 X-Accept-Language: en-us, en;q=0.8, de-de;q=0.7, de;q=0.6 List-Id: On 2021-10-25 02:45+0000, Eric Wong wrote: > By using the charset specified in the message, web browsers are > more likely to display the raw text properly for human readers. > > Inspired by a patch by Thomas Weißschuh: > https://public-inbox.org/meta/20211024214337.161779-3-thomas@t-8ch.de/ > > Cc: Thomas Weißschuh Tested-by: Thomas Weißschuh > --- > lib/PublicInbox/GzipFilter.pm | 19 +++++++++++++------ > lib/PublicInbox/Mbox.pm | 24 +++++++++++++----------- > t/plack.t | 26 +++++++++++++++++++++++--- > t/psgi_v2.t | 5 ++++- > 4 files changed, 53 insertions(+), 21 deletions(-) Thanks!