From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 5FF6B1F44D for ; Fri, 12 Apr 2024 06:59:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1712905144; bh=O/e0Z/7EvG4KFooZI93abb4fbAj9GtVz6Z6DrtT3uhM=; h=From:To:Subject:Date:From; b=krvrmbs8TNY47LxAI6IRDqYe4rtPrNdwqFjPa9O3tgoT54+Bg2KeCklrxFg2XMhBh jDPgcUs9DNZCirALhLslwcgDwYdg6H/jfM5HTYxeVGhRQZnLX46+BVMXHJT0VII0MJ /gEGb3MygEVOUpzBJXyoIHCHPG9wRioRUkrXeXxI= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] doc: mknews: fix warnings when generating NEWS.html Date: Fri, 12 Apr 2024 06:59:04 +0000 Message-ID: <20240412065904.3928605-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: We need these values in the PSGI $env to generate the cache key, even if we're not linkifying anything. Fixes: 48cbe0c3 (www: linkify inbox addresses in To/Cc headers, 2024-01-09) --- Documentation/mknews.perl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/mknews.perl b/Documentation/mknews.perl index 68866f44..001ad310 100755 --- a/Documentation/mknews.perl +++ b/Documentation/mknews.perl @@ -47,6 +47,10 @@ if ($dst eq 'NEWS') { -upfx => "$base_url/", -hr => 1, zfh => $out, + env => { + HTTP_HOST => 'public-inbox.org', + 'psgi.url_scheme' => 'https', + }, }; if ($dst eq 'NEWS.html') { html_start($out, $ctx);