diff options
author | Nathan Gass | 2019-05-13 13:47:21 +0200 |
---|---|---|
committer | Nathan Gass | 2019-05-13 13:47:21 +0200 |
commit | 89b34c8bdaf06b10268cab19796cd94684442124 (patch) | |
tree | 3733676609095d5249f818046f1795b99a65a453 /test/it_url.t | |
parent | 7758be802e3011f6430ad17912fa2b4ab51ed7a3 (diff) | |
download | itools-89b34c8bdaf06b10268cab19796cd94684442124.tar.gz itools-89b34c8bdaf06b10268cab19796cd94684442124.tar.bz2 itools-89b34c8bdaf06b10268cab19796cd94684442124.zip |
add test and fix for 204 http status code
Diffstat (limited to 'test/it_url.t')
-rwxr-xr-x | test/it_url.t | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/it_url.t b/test/it_url.t index eb36dd6..624b4bf 100755 --- a/test/it_url.t +++ b/test/it_url.t @@ -266,6 +266,19 @@ if (!ok( )) diag($output); +$output = handle_server( + is( + it_url::get(U('http://localhost:8000/empty')), + '', + 'it_url::get() explicit empty result' + ) +); +if (!ok( + count(preg_grep('/^Got Request:/', $output)) == 1, + 'it_url::get() does not retry on explicity empty page' +)) + diag($output); + handle_server( is( it_url::get(U('http://localhost:8000/get_server_value', array('key' => 'HTTP_HOST'))), |