From 34d75f6328a8596ae5ec86e861ef13eb2582e2e4 Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Thu, 12 Oct 2017 17:50:28 +0200 Subject: use CURLOPT_FOLLOWLOCATION in it_url::get --- tests/it_url.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/it_url.t') diff --git a/tests/it_url.t b/tests/it_url.t index 9a4594e..eb36dd6 100755 --- a/tests/it_url.t +++ b/tests/it_url.t @@ -209,7 +209,7 @@ handle_server( is( it_url::get(['url' => 'http://localhost:8000/relative_redirect', 'it_error' => false]), "Testserver output after relative redirect", - 'TODO: it_url::get() follows relative redirect correctly' + 'it_url::get() follows relative redirect correctly' ) ); @@ -217,7 +217,7 @@ handle_server( is( it_url::get('http://localhost:8000/nohost_redirect'), "Testserver output after nohost redirect", - 'TODO: it_url::get() follows redirect without host correctly' + 'it_url::get() follows redirect without host correctly' ) ); @@ -231,13 +231,13 @@ handle_server( $output = handle_server( ok( - !it_url::get(U('http://localhost:8000/redirect_loop', array('num' => 10))), + !it_url::get(array('url' => U('http://localhost:8000/redirect_loop', array('num' => 40)), 'it_error' => false)), 'it_url::get() handles redirect loop' ) ); $last_num = it::match('num=(\d+)', end($output)); if (!ok( - $last_num == 5, + $last_num == 20, 'it_url::get() aborts redirect loop after 5 redirects' )) diag($output); -- cgit v1.2.3