summaryrefslogtreecommitdiff
path: root/tests/core-response.t
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2005-09-01 11:12:05 +0000
committerJan Kneschke <jan@kneschke.de>2005-09-01 11:12:05 +0000
commita44e7fc4c46ec353afbadd60d729710d8f1c251f (patch)
tree7b7b5baca889291c8d949282f4b352be0dc2f2d3 /tests/core-response.t
parent8e742eac4c6448bba0c09268b761bad5b9028772 (diff)
downloadlighttpd1.4-a44e7fc4c46ec353afbadd60d729710d8f1c251f.tar.gz
lighttpd1.4-a44e7fc4c46ec353afbadd60d729710d8f1c251f.zip
replace 'localhost' by gethostbyaddr for 127.0.0.1
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@669 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/core-response.t')
-rwxr-xr-xtests/core-response.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/core-response.t b/tests/core-response.t
index 7988383e..abd95f09 100755
--- a/tests/core-response.t
+++ b/tests/core-response.t
@@ -77,14 +77,14 @@ $t->{REQUEST} = ( <<EOF
GET /dummydir HTTP/1.0
EOF
);
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Location' => 'http://localhost:2048/dummydir/' } ];
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Location' => 'http://'.$tf->{HOSTNAME}.':'.$tf->{PORT}.'/dummydir/' } ];
ok($tf->handle_http($t) == 0, 'internal redirect in directory');
$t->{REQUEST} = ( <<EOF
GET /dummydir?foo HTTP/1.0
EOF
);
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Location' => 'http://localhost:2048/dummydir/?foo' } ];
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Location' => 'http://'.$tf->{HOSTNAME}.':'.$tf->{PORT}.'/dummydir/?foo' } ];
ok($tf->handle_http($t) == 0, 'internal redirect in directory + querystring');
## simple-vhost