removed warnings on empty response-body, added debug output to mod_proxy

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@559 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.2
Jan Kneschke 18 years ago
parent 0de585c33b
commit 426880f0a2

@ -195,6 +195,7 @@ sub handle_http {
}
if (defined $href->{'HTTP-Content'}) {
$resp_body = "" unless defined $resp_body;
if ($href->{'HTTP-Content'} ne $resp_body) {
diag(sprintf("body failed: expected '%s', got '%s'\n", $href->{'HTTP-Content'}, $resp_body));
return -1;

@ -87,7 +87,7 @@ fastcgi.server = ( ".php" => (
"grisu" => (
"host" => "127.0.0.1",
"port" => 1048,
"bin-path" => "/home/weigon/Documents/php-4.3.10/sapi/cgi/php -c /usr/local/lib/php.ini",
"bin-path" => "/home/jan/Documents/php-5.1.0b3/sapi/cgi/php -c /usr/local/lib/php.ini",
)
)
)

@ -216,7 +216,7 @@ EOF
}
SKIP: {
skip "no php found", 3 unless -x "/home/weigon/Documents/php-4.3.10/sapi/cgi/php";
skip "no php found", 3 unless -x "/home/jan/Documents/php-5.1.0b3/sapi/cgi/php";
$tf->{CONFIGFILE} = 'fastcgi-13.conf';
ok($tf->start_proc == 0, "Starting lighttpd with $tf->{CONFIGFILE}") or die();
$t->{REQUEST} = ( <<EOF

@ -33,7 +33,7 @@ ok($tf_real->start_proc == 0, "Starting lighttpd") or die();
ok($tf_proxy->start_proc == 0, "Starting lighttpd as proxy") or die();
$t->{REQUEST} = ( <<EOF
GET /phpinfo.php HTTP/1.0
GET /index.html HTTP/1.0
Host: www.example.org
EOF
);
@ -41,7 +41,7 @@ $t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } );
ok($tf_proxy->handle_http($t) == 0, 'valid request');
$t->{REQUEST} = ( <<EOF
GET /phpinfo.php HTTP/1.0
GET /index.html HTTP/1.0
Host: www.example.org
EOF
);

@ -67,6 +67,7 @@ setenv.add-environment = ( "TRAC_ENV" => "foo")
setenv.add-request-header = ( "FOO" => "foo")
setenv.add-response-header = ( "BAR" => "foo")
proxy.debug = 1
proxy.server = ( "" => (
"grisu" => (
"host" => "127.0.0.1",

Loading…
Cancel
Save