Commit 73817d4c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add forgotten test-case

parent fc5b4732
varnishtest "204 response with body"
server s1 {
rxreq
txresp -status 204 -body "HiHo"
} -start
varnish v1 -vcl+backend {
sub vcl_backend_response {
if (beresp.http.foo == "bar") {
set beresp.status = 204;
}
}
} -start
client c1 {
txreq
rxresp
expect resp.status == 503
} -run
server s1 {
rxreq
txresp -hdr "Foo: bar" -body "HiHo"
} -start
client c1 {
txreq -url /2
rxresp
expect resp.status == 204
expect resp.http.content-length == "<undef>"
expect resp.http.transfer-encoding == "<undef>"
} -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