From 60196eedef969743a76f915825b741b69ed1c171 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 26 Apr 2021 08:02:16 +0000 Subject: www: missing /$INBOX/$MSGID/raw returns 404 Don't attempt to return HTTP 300 via Extmsg on it, since whoever uses /raw is likely piping it to some other command. --- t/plack.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 't') 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 -- cgit v1.2.3-24-ge0c7