summaryrefslogtreecommitdiff
path: root/tests/mod-userdir.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/mod-userdir.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/mod-userdir.t')
-rwxr-xr-xtests/mod-userdir.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mod-userdir.t b/tests/mod-userdir.t
index 890e73aa..33f4ab0e 100755
--- a/tests/mod-userdir.t
+++ b/tests/mod-userdir.t
@@ -29,7 +29,7 @@ $t->{REQUEST} = ( <<EOF
GET /~jan HTTP/1.0
EOF
);
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Location' => 'http://localhost:2048/~jan/' } ];
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Location' => 'http://'.$tf->{HOSTNAME}.':'.$tf->{PORT}.'/~jan/' } ];
ok($tf->handle_http($t) == 0, 'valid user + redirect');
$t->{REQUEST} = ( <<EOF