about summary refs log tree commit homepage
path: root/Documentation/mknews.perl
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2024-04-12 06:59:04 +0000
committerEric Wong <e@80x24.org>2024-04-12 17:46:12 +0000
commit205f67d4d7bedbec0901e8b9b586844fd0b2a28d (patch)
treed0a16823ba4988d8b16c16478b68f2e4735ae237 /Documentation/mknews.perl
parent873066744d1b105da4cfafb1c7312ca11b579864 (diff)
downloadpublic-inbox-205f67d4d7bedbec0901e8b9b586844fd0b2a28d.tar.gz
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)
Diffstat (limited to 'Documentation/mknews.perl')
-rwxr-xr-xDocumentation/mknews.perl4
1 files changed, 4 insertions, 0 deletions
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);