]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
doc: mknews: fix uninitialized variable
authorEric Wong <e@80x24.org>
Wed, 2 Apr 2025 19:09:49 +0000 (19:09 +0000)
committerEric Wong <e@80x24.org>
Fri, 4 Apr 2025 19:52:42 +0000 (19:52 +0000)
SCRIPT_NAME is required by Plack, so ensure this mock env
has it, as well.

Fixes: 1b130400 (www: omit SERVER_PORT for standard port redirects, 2025-03-28)
Documentation/mknews.perl

index 07e77ebef8c1a59b5f03858243dfb62020cd9e8c..9990732ae39e00daaedbc47175d6e41372938579 100755 (executable)
@@ -50,6 +50,7 @@ if ($dst eq 'NEWS') {
                env => {
                        HTTP_HOST => 'public-inbox.org',
                        'psgi.url_scheme' => 'https',
+                       SCRIPT_NAME => '',
                },
                www => {
                        pi_cfg => {