user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH] doc: mknews: fix warnings when generating NEWS.html
@ 2024-04-12  6:59  7% Eric Wong
  0 siblings, 0 replies; 1+ results
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	[relevance 7%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2024-04-12  6:59  7% [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).