From 863dae42aa5984e08e14baad6ae17e86c536dc13 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 14 Aug 2016 10:16:55 +0000 Subject: newswww: include body text in 404 response 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. --- lib/PublicInbox/NewsWWW.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/NewsWWW.pm') 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; -- cgit v1.2.3-24-ge0c7