diff options
| author | Nathan Gass | 2017-10-12 17:50:28 +0200 | 
|---|---|---|
| committer | Nathan Gass | 2017-10-12 17:52:21 +0200 | 
| commit | 34d75f6328a8596ae5ec86e861ef13eb2582e2e4 (patch) | |
| tree | 649944b5784025cde4a0368291c173fac1484cfd /tests | |
| parent | 846a5a273275a4b7c9df066fcc1317418e283ec8 (diff) | |
| download | itools-34d75f6328a8596ae5ec86e861ef13eb2582e2e4.tar.gz itools-34d75f6328a8596ae5ec86e861ef13eb2582e2e4.tar.bz2 itools-34d75f6328a8596ae5ec86e861ef13eb2582e2e4.zip  | |
use CURLOPT_FOLLOWLOCATION in it_url::get
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/it_url.t | 8 | 
1 files changed, 4 insertions, 4 deletions
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);  |