From: Eric Wong Date: Sun, 14 Aug 2016 10:16:55 +0000 (+0000) Subject: newswww: include body text in 404 response X-Git-Tag: v1.0.0~235 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=863dae42aa5984e08e14baad6ae17e86c536dc13;p=thirdparty%2Fpublic-inbox.git 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. --- diff --git a/lib/PublicInbox/NewsWWW.pm b/lib/PublicInbox/NewsWWW.pm index 908c43510..9b01dcd38 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;