diff options
author | Eric Wong <e@80x24.org> | 2014-04-12 00:49:34 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-04-12 00:49:34 +0000 |
commit | c394de9f2c91c2c5ed1f7832a5a7cc0206120b7f (patch) | |
tree | c62cf7391c8f0d5dafe47806bc0dd768a9d58569 /t | |
parent | 6e4654d5c509a2772f9fa8dcd0c46e05ca5feaea (diff) | |
download | public-inbox-c394de9f2c91c2c5ed1f7832a5a7cc0206120b7f.tar.gz |
We may have something like /foo.cgi/m/$MID.html in there.
Diffstat (limited to 't')
-rw-r--r-- | t/cgi.t | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -131,6 +131,10 @@ EOF my $res = cgi_run("/test/m/blahblah\@example.com.txt"); like($res->{body}, qr/Message-Id: <blahblah\@example\.com>/, "mid.txt hit"); + + my $pfx = cgi_run("/prefixed/test/m/blahblah\@example.com.txt"); + is_deeply($pfx, $res, "we do not have to be a top-level URL"); + $res = cgi_run("/test/m/blahblah\@example.con.txt"); like($res->{head}, qr/Status: 404 Not Found/, "mid.txt miss"); |