diff options
author | Eric Wong <e@80x24.org> | 2016-08-14 10:16:55 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-08-14 10:20:15 +0000 |
commit | 863dae42aa5984e08e14baad6ae17e86c536dc13 (patch) | |
tree | 91aacef1d1fc6b0602b54fe7b137cc868ee24c46 /lib | |
parent | 610d056b90196f8c03f5f6fccaef0517e7fc9c19 (diff) | |
download | public-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')
-rw-r--r-- | lib/PublicInbox/NewsWWW.pm | 2 |
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; |