]> err.no Git - varnish/commitdiff
* Use CRLF EOL-markers.
authorknutroy <knutroy@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 17 Aug 2007 12:30:58 +0000 (12:30 +0000)
committerknutroy <knutroy@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 17 Aug 2007 12:30:58 +0000 (12:30 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1852 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-tools/regress/lib/Varnish/Test/Client.pm
varnish-tools/regress/lib/Varnish/Test/Server.pm

index 99f71ead328e23f3bcba74985995ef08cee33a16..217c8ae5e74eb2ce6a9176edfe889646e575dac0 100644 (file)
@@ -88,7 +88,7 @@ sub send_request($$;$) {
     }
     $self->{'timeout'} = $timeout;
     $self->{'mux'}->set_timeout($self->{'fh'}, $timeout);
-    $self->{'mux'}->write($self->{'fh'}, $request->as_string);
+    $self->{'mux'}->write($self->{'fh'}, $request->as_string("\r\n"));
     $self->{'requests'} += 1;
     $self->logf("%s %s %s", $request->method(), $request->uri(), $request->protocol());
 }
index d3c287ab08502f9ddbb64d2fe8b3db349a08258d..787478875367798b40b212656d83a12003d0444e 100644 (file)
@@ -137,7 +137,7 @@ sub send_response($$) {
 
     $response->message(status_message($response->code()))
        unless $response->message();
-    $self->{'mux'}->write($self->{'fh'}, $response->as_string);
+    $self->{'mux'}->write($self->{'fh'}, $response->as_string("\r\n"));
     $self->{'server'}->{'responses'} += 1;
     $self->{'server'}->logf("%s %s", $response->code(), $response->message());
 }