X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F04ssl.t;h=21e05b5459cd3c8dbc946f5c6dc3d1fbdbeaeae2;hb=4a6b6badbf9b5eb2d944af681d667d95bace49c7;hp=83fcfccffe8e15c14524866066357d13d06fb519;hpb=5d4c7b1a07fb27757e788c7cf5750ea68f3c7679;p=catagits%2FCatalyst-Plugin-RequireSSL.git diff --git a/t/04ssl.t b/t/04ssl.t index 83fcfcc..21e05b5 100644 --- a/t/04ssl.t +++ b/t/04ssl.t @@ -21,7 +21,7 @@ ok( $res = request('http://localhost/ssl/secured?a=2&a=1&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 -ok( my $res = request('http://localhost/ssl/maybe_secured'), 'request ok' ); +ok( $res = request('http://localhost/ssl/maybe_secured'), 'request ok' ); is( $res->code, 200, 'no redirect for optional SSL action' ); # test that it doesn't redirect on POST