diff options
author | Eric Wong <e@80x24.org> | 2014-04-17 21:30:21 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-04-17 21:30:21 +0000 |
commit | b2da3f40fb7650a658b6ed1a15c81704d91b2831 (patch) | |
tree | 4fc5f14543f6648b93ac63a83a01ebf544e382cd /public-inbox.cgi | |
parent | 970da289a8ea3532538846905c7c01778066e1a9 (diff) | |
download | public-inbox-b2da3f40fb7650a658b6ed1a15c81704d91b2831.tar.gz |
This makes it slightly easier for out-of-the-box curl users since curl does not report or show the error by default.
Diffstat (limited to 'public-inbox.cgi')
-rwxr-xr-x | public-inbox.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public-inbox.cgi b/public-inbox.cgi index 9d60d1fc..bd592ce3 100755 --- a/public-inbox.cgi +++ b/public-inbox.cgi @@ -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 { |