diff options
author | Eric Wong <e@80x24.org> | 2016-04-15 20:50:56 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-04-15 20:50:56 +0000 |
commit | fdf9b900b8c35cb4259dbdf56400d44db61e7a9e (patch) | |
tree | 418244247703b6087aa12597feffad85394e8612 /t/cgi.t | |
parent | 474a987a2ba9183ceb9e143aeccdc49c7cb5f382 (diff) | |
download | public-inbox-fdf9b900b8c35cb4259dbdf56400d44db61e7a9e.tar.gz |
Quote-folding was a major design mistake pre-1.0. Since this project is still in its infancy and unlikely to be in wide use at the moment, redirect the /f/ endpoints back to the plain message.
Diffstat (limited to 't/cgi.t')
-rw-r--r-- | t/cgi.t | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -188,9 +188,11 @@ EOF like($res->{head}, qr/Status: 300 Multiple Choices/, "mid html miss"); $res = cgi_run("/test/blahblah\@example.com/f/"); - like($res->{body}, qr/\A<html>/, "mid html"); - like($res->{head}, qr/Status: 200 OK/, "200 response"); - $res = cgi_run("/test/blahblah\@example.con/f/"); + like($res->{head}, qr/Status: 301 Moved/, "301 response"); + like($res->{head}, + qr!^Location: http://[^/]+/test/blahblah%40example\.com/\r\n!ms, + '301 redirect location'); + $res = cgi_run("/test/blahblah\@example.con/"); like($res->{head}, qr/Status: 300 Multiple Choices/, "mid html miss"); $res = cgi_run("/test/"); |