X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fpsgi_mount.t;h=c00e74a8cd21f6885c3b6383ca0faae29c2f376a;hb=4db4bfa2c9178b315d2ac09cff794a4476ba1f6e;hp=c1c1b0c642fd96b2adc4454f13c1b5227e6d9bf1;hpb=19e00ca1a6aab8e59f74241fcdfbb768785ff2ff;p=public-inbox.git diff --git a/t/psgi_mount.t b/t/psgi_mount.t index c1c1b0c6..c00e74a8 100644 --- a/t/psgi_mount.t +++ b/t/psgi_mount.t @@ -1,4 +1,4 @@ -# Copyright (C) 2016 all contributors +# Copyright (C) 2016-2018 all contributors # License: AGPL-3.0+ use strict; use warnings; @@ -9,7 +9,7 @@ my $tmpdir = tempdir('psgi-path-XXXXXX', TMPDIR => 1, CLEANUP => 1); my $maindir = "$tmpdir/main.git"; my $addr = 'test-public@example.com'; my $cfgpfx = "publicinbox.test"; -my @mods = qw(HTTP::Request::Common Plack::Request Plack::Test URI::Escape); +my @mods = qw(HTTP::Request::Common Plack::Test URI::Escape); foreach my $mod (@mods) { eval "require $mod"; plan skip_all => "$mod missing for plack.t" if $@; @@ -67,7 +67,7 @@ test_psgi($app, sub { is($res->code, 200, 'OK with URLMap mount'); $res = $cb->(GET('/a/test/m/blah%40example.com.html')); is($res->header('Location'), - 'http://localhost/a/test/blah%40example.com/', + 'http://localhost/a/test/blah@example.com/', 'redirect functions properly under mount'); $res = $cb->(GET('/test/blah%40example.com/'));