]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_mount.t
run update-copyrights from gnulib for 2019
[public-inbox.git] / t / psgi_mount.t
index c1c1b0c642fd96b2adc4454f13c1b5227e6d9bf1..05dbd7365d614c64e0d317dfe1203f4e42f40244 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2016 all contributors <meta@public-inbox.org>
+# Copyright (C) 2016-2019 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 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/'));