Commit 6098a21a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add chunked encoding from backend test.

Fix copy&paste mistake in test b00006



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2814 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f3565d1d
......@@ -22,4 +22,3 @@ client c1 -run
server s1 -wait
varnish v1 -stop
shell "rm ../varnishd/varnishtest_backing"
# $Id$
test "Check chunked encoding from backend works"
varnish v1 -arg "-s malloc -b 127.0.0.1:9080" -start
server s1 {
rxreq
expect req.url == "/bar"
send "HTTP/1.1 200 Ok\r\n"
send "Transfer-encoding: chunked\r\n"
send "\r\n"
send "00000004\r\n1234\r\n"
send "00000000\r\n"
rxreq
expect req.url == "/foo"
send "HTTP/1.1 200 Ok\r\n"
send "Transfer-encoding: chunked\r\n"
send "\r\n"
send "00000004\r\n1234\r\n"
send "00000004\r\n1234\r\n"
send "00000000\r\n"
}
server s1 -start
client c1 {
txreq -url "/bar"
rxresp
expect resp.status == 200
expect resp.http.content-length == "4"
txreq -url "/foo"
rxresp
expect resp.status == 200
expect resp.http.content-length == "8"
}
client c1 -run
server s1 -wait
varnish v1 -stop
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment