about summary refs log tree commit homepage
path: root/lib/PublicInbox/NewsWWW.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-08-14 10:16:55 +0000
committerEric Wong <e@80x24.org>2016-08-14 10:20:15 +0000
commit863dae42aa5984e08e14baad6ae17e86c536dc13 (patch)
tree91aacef1d1fc6b0602b54fe7b137cc868ee24c46 /lib/PublicInbox/NewsWWW.pm
parent610d056b90196f8c03f5f6fccaef0517e7fc9c19 (diff)
downloadpublic-inbox-863dae42aa5984e08e14baad6ae17e86c536dc13.tar.gz
Some browsers do not give any indication of the HTTP error
code on errors, so show the error text to the user like we
do in the top-level WWW module.
Diffstat (limited to 'lib/PublicInbox/NewsWWW.pm')
-rw-r--r--lib/PublicInbox/NewsWWW.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/NewsWWW.pm b/lib/PublicInbox/NewsWWW.pm
index 908c4351..9b01dcd3 100644
--- a/lib/PublicInbox/NewsWWW.pm
+++ b/lib/PublicInbox/NewsWWW.pm
@@ -43,7 +43,7 @@ sub call {
 
                 return [ $code, $h, [ "Redirecting to $url\n" ] ]
         }
-        [ 404, [ 'Content-Type' => 'text/plain' ], [] ];
+        [ 404, [ 'Content-Type' => 'text/plain' ], [ "404 Not Found\n" ] ];
 }
 
 1;