about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/cgi.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/cgi.t b/t/cgi.t
index ae7cc730..c8755541 100644
--- a/t/cgi.t
+++ b/t/cgi.t
@@ -181,6 +181,14 @@ EOF
                 "slashy URL generated correctly");
 }
 
+# redirect list-name-only URLs
+{
+        local $ENV{HOME} = $home;
+        my $res = cgi_run("/test");
+        like($res->{head}, qr/Status: 301 Moved/, "redirected status");
+        like($res->{head}, qr!/test/!, "redirected with slash");
+}
+
 done_testing();
 
 sub run_with_env {