]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
doc: mknews: fix warnings when generating NEWS.html
authorEric Wong <e@80x24.org>
Fri, 12 Apr 2024 06:59:04 +0000 (06:59 +0000)
committerEric Wong <e@80x24.org>
Fri, 12 Apr 2024 17:46:12 +0000 (17:46 +0000)
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

index 68866f44f202b6947f31bc3b056d6cb75698abcf..001ad31024d06c90d194de22fbcca4cedc928bf8 100755 (executable)
@@ -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);