about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2024-05-19 21:55:09 +0000
committerEric Wong <e@80x24.org>2024-05-20 18:29:48 +0000
commitb26d31678a97a6a8581c1775acf956e7e4f5328c (patch)
tree891e09f69f41c0c472c86c18a4e90a62ecfcae63 /lib/PublicInbox
parent87997a92cb11db354296fc244e39ec0fb8ceff00 (diff)
downloadpublic-inbox-b26d31678a97a6a8581c1775acf956e7e4f5328c.tar.gz
It wasn't ever documented, but since config/raw exists, it makes
sense for help/raw to exist, too.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/WwwText.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/WwwText.pm b/lib/PublicInbox/WwwText.pm
index 5e23005e..8279591a 100644
--- a/lib/PublicInbox/WwwText.pm
+++ b/lib/PublicInbox/WwwText.pm
@@ -37,7 +37,7 @@ sub get_text {
         }
         my $env = $ctx->{env};
         if ($raw) {
-                my $h = delete $ctx->{-res_hdr};
+                my $h = delete $ctx->{-res_hdr} // [];
                 $txt = gzf_maybe($h, $env)->zflush($txt) if $code == 200;
                 push @$h, 'Content-Type', 'text/plain',
                         'Content-Length', length($txt);