summaryrefslogtreecommitdiff
path: root/tests/it_url.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/it_url.t')
-rwxr-xr-xtests/it_url.t6
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',
)
);