diff options
author | Eric Wong <e@80x24.org> | 2023-01-12 14:14:34 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-01-13 03:56:14 +0000 |
commit | 1c5e51b931fb2a00df28dd5e81d1766b63e389b3 (patch) | |
tree | b38027138124eb00f5d5991369c45e83e679b369 /t/solver_git.t | |
parent | eea4b03f08b40647b7cf6016838d18ae26d98a08 (diff) | |
download | public-inbox-1c5e51b931fb2a00df28dd5e81d1766b63e389b3.tar.gz |
This is for compatibility with cgit to ease migration.
Diffstat (limited to 't/solver_git.t')
-rw-r--r-- | t/solver_git.t | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/solver_git.t b/t/solver_git.t index 89ed0362..5519fa18 100644 --- a/t/solver_git.t +++ b/t/solver_git.t @@ -381,6 +381,13 @@ EOF $res = $cb->(GET('/public-inbox/atom/README.md')); is($res->code, 404, '404 on non-existent file Atom feed'); } + + $res = $cb->(GET('/public-inbox/tree/')); + is($res->code, 302, 'got redirect'); + $res = $cb->(GET('/public-inbox/tree/README')); + is($res->code, 302, 'got redirect for regular file'); + $res = $cb->(GET('/public-inbox/tree/Documentation')); + is($res->code, 302, 'got redirect for directory'); }; test_psgi(sub { $www->call(@_) }, $client); my $env = { PI_CONFIG => $cfgpath, TMPDIR => $tmpdir }; |