about summary refs log tree commit homepage
path: root/t/cgi.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-08-27 04:34:01 +0000
committerEric Wong <e@80x24.org>2015-08-27 06:04:51 +0000
commit9a2931759c3dcbd879728b49151aa3f8a641b506 (patch)
tree001d6823d7d9d143d3494ad8376d624ea1ca6afc /t/cgi.t
parente3c3cde22f57bf16bc47c50d8f9ac02416975cd3 (diff)
downloadpublic-inbox-9a2931759c3dcbd879728b49151aa3f8a641b506.tar.gz
These URLs are preferable in case somebody decides to get cute and
use a suffix we would've used to prevent others from linking to
their message.  The common /m/$MESSAGE_ID/ URLs are now 4 characters
shorter so may fit better on terminals.
Diffstat (limited to 't/cgi.t')
-rw-r--r--t/cgi.t28
1 files changed, 14 insertions, 14 deletions
diff --git a/t/cgi.t b/t/cgi.t
index 020dfe7e..fc28ae30 100644
--- a/t/cgi.t
+++ b/t/cgi.t
@@ -152,27 +152,27 @@ EOF
         }
         local $ENV{GIT_DIR} = $maindir;
 
-        my $res = cgi_run("/test/m/slashy%2fasdf%40example.com.txt");
+        my $res = cgi_run("/test/m/slashy%2fasdf%40example.com/raw");
         like($res->{body}, qr/Message-Id: <\Q$slashy_mid\E>/,
-                "slashy mid.txt hit");
+                "slashy mid raw hit");
 
-        $res = cgi_run("/test/m/blahblah\@example.com.txt");
+        $res = cgi_run("/test/m/blahblah\@example.com/raw");
         like($res->{body}, qr/Message-Id: <blahblah\@example\.com>/,
-                "mid.txt hit");
-        $res = cgi_run("/test/m/blahblah\@example.con.txt");
-        like($res->{head}, qr/Status: 404 Not Found/, "mid.txt miss");
+                "mid raw hit");
+        $res = cgi_run("/test/m/blahblah\@example.con/raw");
+        like($res->{head}, qr/Status: 404 Not Found/, "mid raw miss");
 
-        $res = cgi_run("/test/m/blahblah\@example.com.html");
-        like($res->{body}, qr/\A<html>/, "mid.html hit");
+        $res = cgi_run("/test/m/blahblah\@example.com/");
+        like($res->{body}, qr/\A<html>/, "mid html hit");
         like($res->{head}, qr/Status: 200 OK/, "200 response");
-        $res = cgi_run("/test/m/blahblah\@example.con.html");
-        like($res->{head}, qr/Status: 404 Not Found/, "mid.html miss");
+        $res = cgi_run("/test/m/blahblah\@example.con/");
+        like($res->{head}, qr/Status: 404 Not Found/, "mid html miss");
 
-        $res = cgi_run("/test/f/blahblah\@example.com.html");
-        like($res->{body}, qr/\A<html>/, "mid.html hit");
+        $res = cgi_run("/test/f/blahblah\@example.com/");
+        like($res->{body}, qr/\A<html>/, "mid html");
         like($res->{head}, qr/Status: 200 OK/, "200 response");
-        $res = cgi_run("/test/f/blahblah\@example.con.html");
-        like($res->{head}, qr/Status: 404 Not Found/, "mid.html miss");
+        $res = cgi_run("/test/f/blahblah\@example.con/");
+        like($res->{head}, qr/Status: 404 Not Found/, "mid html miss");
 
         $res = cgi_run("/test/");
         like($res->{body}, qr/slashy%2Fasdf%40example\.com/,