X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F04ssl.t;h=818bb9d9057b4b2e2923d95f052ef35d62cc22b0;hb=61b3173919e7c140ba0160a57971d48e249c2f46;hp=21e05b5459cd3c8dbc946f5c6dc3d1fbdbeaeae2;hpb=794abe2a200320318b087365f8141750a92f0647;p=catagits%2FCatalyst-Plugin-RequireSSL.git diff --git a/t/04ssl.t b/t/04ssl.t index 21e05b5..818bb9d 100644 --- a/t/04ssl.t +++ b/t/04ssl.t @@ -17,7 +17,7 @@ is( $res->header('location'), 'https://localhost/ssl/secured', 'redirect uri ok' isnt( $res->content, 'Secured', 'no content displayed on secure page, ok' ); # test redirection params -ok( $res = request('http://localhost/ssl/secured?a=2&a=1&b=3&c=4'), 'request ok' ); +ok( $res = request('http://localhost/ssl/secured?a=1&a=2&b=3&c=4'), 'request ok' ); is( $res->header('location'), 'https://localhost/ssl/secured?a=1&a=2&b=3&c=4', 'redirect with params ok' ); # test that it does not redirect for actions where SSL mode is optional @@ -47,7 +47,7 @@ SKIP: is( $res->header('location'), 'http://localhost/ssl/unsecured', 'redirect uri ok' ); # test redirection params - ok( $res = request('https://localhost/ssl/unsecured?a=2&a=1&b=3&c=4'), 'request ok' ); + ok( $res = request('https://localhost/ssl/unsecured?a=1&a=2&b=3&c=4'), 'request ok' ); is( $res->header('location'), 'http://localhost/ssl/unsecured?a=1&a=2&b=3&c=4', 'redirect with params ok' ); # test that it does not redirect for actions where SSL mode is optional