Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ticket #1220: Temporary gzip issue: Invalid Gzip data: incorrect header check
--- a/bin/varnishd/cache_gzip.c
+++ b/bin/varnishd/cache_gzip.c
@@ -646,9 +646,6 @@
bytes -= w;
VGZ_Ibuf(vg, st->ptr + st->len, w);
st->len += w;
- sp->obj->len += w;
- if (sp->wrk->do_stream)
- RES_StreamPoll(sp);
while (!VGZ_IbufEmpty(vg)) {
VGZ_Obuf(vg, obuf, sizeof obuf);
@@ -660,6 +657,9 @@
"Invalid Gzip data", vg->vz.msg));
}
+ sp->obj->len += w;
+ if (sp->wrk->do_stream)
+ RES_StreamPoll(sp);
}
assert(i == VGZ_OK || i == VGZ_END);
return (1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment