Properly generate VDP_END for gunzip

parent 804014ad
......@@ -386,7 +386,8 @@ vdp_gunzip_bytes(struct vdp_ctx *vdx, enum vdp_action act, void **priv,
if (vr < VGZ_OK)
return (-1);
if (vg->m_len == vg->m_sz || vr != VGZ_OK) {
if (VDP_bytes(vdx, VDP_FLUSH, vg->m_buf, vg->m_len))
if (VDP_bytes(vdx, vr == VGZ_END ? VDP_END : VDP_FLUSH,
vg->m_buf, vg->m_len))
return (vdx->retval);
vg->m_len = 0;
VGZ_Obuf(vg, vg->m_buf, vg->m_sz);
......
......@@ -18,9 +18,15 @@ varnish v1 \
-cliok "param.set gzip_memlevel 1" \
-vcl+backend {
import debug;
sub vcl_backend_response {
set beresp.do_esi = true;
}
sub vcl_deliver {
set resp.filters += " debug.pedantic";
}
} -start
varnish v1 -cliok "param.set fetch_chunksize 4k"
......
......@@ -66,7 +66,7 @@ varnish v1 -vcl+backend {
sub vcl_deliver {
if (req.http.Rot13) {
set resp.filters = "rot13";
set resp.filters = "rot13 debug.pedantic";
}
}
}
......
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