Commit ddc87188 authored by Federico G. Schwindt's avatar Federico G. Schwindt Committed by Lasse Karstensen

Test esi:included uncompressed synthetic responses

parent 0b305026
varnishtest "Uncompressed synthetic responses as esi includes"
server s1 {
rxreq
txresp -body {<FOO><esi:include src="/foo"/></FOO>}
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
if (req.url == "/foo") {
return (synth(998));
}
}
sub vcl_synth {
if (resp.status == 998) {
synthetic("synthetic body");
return (deliver);
}
}
sub vcl_backend_response {
set beresp.do_esi = true;
}
} -start
client c1 {
txreq
rxresp
expect resp.status == 200
expect resp.body == "<FOO>synthetic body</FOO>"
} -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