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);

Reply via email to