diff options
author | Nathan Gass | 2013-03-04 17:43:04 +0000 |
---|---|---|
committer | Nathan Gass | 2013-03-04 17:43:04 +0000 |
commit | 610121198886a34bcfc6cddd6649500e3c89a0cb (patch) | |
tree | 6d1f27f0cacf92038e0e998b351088212d0c37fe /tests | |
parent | 55202ffc8bbedf0c70bdbca4f1ea2db4a0a4d404 (diff) | |
download | itools-610121198886a34bcfc6cddd6649500e3c89a0cb.tar.gz itools-610121198886a34bcfc6cddd6649500e3c89a0cb.tar.bz2 itools-610121198886a34bcfc6cddd6649500e3c89a0cb.zip |
factor out request method from get method, make http method overwritable, fix Host header
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/it_url.t | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/it_url.t b/tests/it_url.t index 45e882c..a1caaaa 100755 --- a/tests/it_url.t +++ b/tests/it_url.t @@ -66,11 +66,12 @@ is( $_SERVER['HTTP_HOST'] = "gna.ch"; is( it_url::absolute("/"), - 'http://gna.ch:/', + 'http://gna.ch/', 'it_url::absolute basic' ); $_SERVER['SERVER_PORT'] = 42; +$_SERVER['HTTP_HOST'] = "gna.ch:42"; is( it_url::absolute("/port"), 'http://gna.ch:42/port', @@ -78,6 +79,7 @@ is( ); $_SERVER['HTTPS'] = true; +$_SERVER['HTTP_HOST'] = "gna.ch"; $_SERVER['SERVER_PORT'] = 443; is( it_url::absolute("/https"), @@ -194,7 +196,7 @@ handle_server( is( it_url::get(U('http://localhost:8000/get_server_value', 'key' => 'HTTP_HOST')), 'localhost:8000', - 'TODO it_url::get() sets correct Host header', + 'it_url::get() sets correct Host header', ) ); |