diff options
author | Eric Wong <e@80x24.org> | 2014-04-10 20:02:34 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-04-11 22:23:58 +0000 |
commit | b60a668b43b0a279c2a1d621c009396bea1a4898 (patch) | |
tree | 3b4a840a97657eb4ea6e6d0d8c723c63970da71a /t | |
parent | 610e07776ea454ef5b86714f14718540ab0b4dae (diff) | |
download | public-inbox-b60a668b43b0a279c2a1d621c009396bea1a4898.tar.gz |
This prevents ambiguity when switching URLs between static file servers and CGI. The /$LISTNAME/index.html URL appearing in the wild is inevitable because of our static file server support. Worst yet, there's no easy/consistent way to get all installations detect and 301 them to the shorter /$LISTNAME/. So we make the CGI support /$LISTNAME/index.html. The downside of this is the potential duplicate entry in all caches.
Diffstat (limited to 't')
-rw-r--r-- | t/cgi.t | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -119,10 +119,13 @@ EOF local $ENV{HOME} = $home; my $res = cgi_run("/test/"); like($res->{head}, qr/Status: 200 OK/, "index returns 200"); + + my $idx = cgi_run("/test/index.html"); + is_deeply($res, $idx, + '/$LISTNAME/ and /$LISTNAME/index.html are identical'); # more checks in t/feed.t } - { local $ENV{HOME} = $home; my $res = cgi_run("/test/m/blahblah\@example.com.txt"); |