]> Sergey Matveev's repositories - public-inbox.git/blobdiff - public-inbox.cgi
cgi: include HTTP status in error message body
[public-inbox.git] / public-inbox.cgi
index 9d60d1fc6370f6a9be163279de86110f51ad4bc3..bd592ce3e3107c6ed77ea51f0cf0c761284393e4 100755 (executable)
@@ -95,7 +95,7 @@ sub main {
 sub r404 { r("404 Not Found") }
 
 # simple response for errors
-sub r { [ $_[0], { 'Content-Type' => 'text/plain' }, '' ] }
+sub r { [ $_[0], { 'Content-Type' => 'text/plain' }, $_[0]."\n" ] }
 
 # returns undef if valid, array ref response if invalid
 sub invalid_list {