about summary refs log tree commit homepage
path: root/t/plack.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-26 08:02:16 +0000
committerEric Wong <e@80x24.org>2021-04-26 10:44:29 +0000
commit60196eedef969743a76f915825b741b69ed1c171 (patch)
treea5c4a5e06d9f42ffecfc36462e7b541225b9838c /t/plack.t
parentd04a5a1eb026fa740e330d2b64af17d80e746624 (diff)
downloadpublic-inbox-60196eedef969743a76f915825b741b69ed1c171.tar.gz
Don't attempt to return HTTP 300 via Extmsg on it,
since whoever uses /raw is likely piping it to some
other command.
Diffstat (limited to 't/plack.t')
-rw-r--r--t/plack.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/plack.t b/t/plack.t
index db72e6cc..40ff2baa 100644
--- a/t/plack.t
+++ b/t/plack.t
@@ -82,6 +82,8 @@ test_psgi($app, sub {
         $res = $cb->(GET('http://example.com/test/crlf@example.com/raw'));
         is($res->code, 200, 'retrieved CRLF raw');
         like($res->content, qr/\r/, 'CR preserved in raw message');
+        $res = $cb->(GET('http://example.com/test/bogus@example.com/raw'));
+        is($res->code, 404, 'missing /raw is 404');
 });
 
 # redirect with newsgroup