summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9>2011-03-31 19:38:18 +0000
committerstbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9>2011-03-31 19:38:18 +0000
commitc8c64f795dd001d85299b391293555295af17680 (patch)
tree12756fbdedad1c0c6392e1c5cc8fe216a30d98f4
parent28f8c9bce5b4279bf7aa6a7b94812f3b5e806043 (diff)
downloadlighttpd-c8c64f795dd001d85299b391293555295af17680.tar.gz
tests: server.name is allowed to overwrite hostname from mod_simple_vhost
* not the same as doc-root: doc-root has always to be set, server.name does not Background: the doc-root option is only patched to the conf struct; the real doc-root has a separate value in the connection data. server-name is patched directly into the connection data. git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@2784 152afb58-edef-0310-8abb-c4023f1b3aa9
-rwxr-xr-xtests/fastcgi.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fastcgi.t b/tests/fastcgi.t
index 0df76d7f..37b82f71 100755
--- a/tests/fastcgi.t
+++ b/tests/fastcgi.t
@@ -125,7 +125,7 @@ GET /get-server-env.php?env=SERVER_NAME HTTP/1.0
Host: zzz.example.org
EOF
);
- $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'www.example.org' } ];
+ $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'zzz.example.org' } ];
ok($tf->handle_http($t) == 0, 'SERVER_NAME');
$t->{REQUEST} = ( <<EOF