summaryrefslogtreecommitdiffhomepage
path: root/tests/scripts/webserver.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts/webserver.pl')
-rwxr-xr-xtests/scripts/webserver.pl11
1 files changed, 7 insertions, 4 deletions
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 "<html>$EOL";
print $client "<h1>Tinyproxy test WEB server</h1>$EOL";
print $client "<h2>Fortune</h2>$EOL";