Commit e9afec95 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add test for two corner cases in backend body determination.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3472 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 53a1e41a
# $Id$
test "test backend transmission corner cases"
server s1 {
rxreq
txresp
rxreq
txresp -proto HTTP/1.0 -hdr "Connection: keep-alive"
rxreq
txresp -hdr "Transfer-encoding: foobar"
} -start
varnish v1 -vcl+backend {} -start
client c1 {
txreq -url /foo
rxresp
expect resp.status == 200
expect resp.bodylen == 0
txreq -url /bar
rxresp
expect resp.status == 200
expect resp.bodylen == 0
txreq -url /barf
rxresp
expect resp.status == 503
} -run
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