From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id CCB0F1F6C1 for ; Sun, 14 Aug 2016 10:21:47 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] newswww: include body text in 404 response Date: Sun, 14 Aug 2016 10:21:47 +0000 Message-Id: <20160814102147.11534-1-e@80x24.org> List-Id: 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(-) diff --git a/lib/PublicInbox/NewsWWW.pm b/lib/PublicInbox/NewsWWW.pm index 908c435..9b01dcd 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; -- EW