user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH] doc: mknews: fix warnings when generating NEWS.html
@ 2024-04-12  6:59 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2024-04-12  6:59 UTC (permalink / raw)
  To: meta

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-12  6:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-12  6:59 [PATCH] doc: mknews: fix warnings when generating NEWS.html Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).