summaryrefslogtreecommitdiff
path: root/tests/scripts
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-10-10 20:57:07 +0200
committerMichael Adam <obnox@samba.org>2009-10-10 20:57:07 +0200
commitcbe52ca43ca89691cde1459228ffff40113e4136 (patch)
treecbe0a72eccf592c03ebd512523bf7f9e99e01459 /tests/scripts
parent07d993cbc1bd3b3ef474536fe4e61918519dc2c3 (diff)
downloadtinyproxy-cbe52ca43ca89691cde1459228ffff40113e4136.tar.gz
tinyproxy-cbe52ca43ca89691cde1459228ffff40113e4136.zip
tests:webserver: correctly answer http/0.9 requests by sending no headers
Michael
Diffstat (limited to '')
-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";