From cbe52ca43ca89691cde1459228ffff40113e4136 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sat, 10 Oct 2009 20:57:07 +0200 Subject: tests:webserver: correctly answer http/0.9 requests by sending no headers Michael --- tests/scripts/webserver.pl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/scripts/webserver.pl b/tests/scripts/webserver.pl index 223ebd5..aa5eb13 100755 --- a/tests/scripts/webserver.pl +++ b/tests/scripts/webserver.pl @@ -193,10 +193,13 @@ sub child_action($) { return; } - print $client "HTTP/1.0 200 OK$EOL"; - print $client "$server_header$EOL"; - print $client "Content-Type: text/html$EOL"; - print $client "$EOL"; + if ($request->{version} ne "0.9") { + print $client "HTTP/1.0 200 OK$EOL"; + print $client "$server_header$EOL"; + print $client "Content-Type: text/html$EOL"; + print $client "$EOL"; + } + print $client "$EOL"; print $client "

Tinyproxy test WEB server

$EOL"; print $client "

Fortune

$EOL"; -- cgit v1.2.3