[master] f6a5e7e Allways call with VGZ_FINISH for proper gzip termination.
Poul-Henning Kamp
phk at varnish-cache.org
Tue Mar 15 11:01:40 CET 2011
commit f6a5e7e0f8e23b3b19a296561d25818844226c6d
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Mar 15 10:00:30 2011 +0000
Allways call with VGZ_FINISH for proper gzip termination.
Fixes #872
diff --git a/bin/varnishd/cache_esi_parse.c b/bin/varnishd/cache_esi_parse.c
index 5e1915e..937a857 100644
--- a/bin/varnishd/cache_esi_parse.c
+++ b/bin/varnishd/cache_esi_parse.c
@@ -1043,8 +1043,8 @@ VEP_Finish(const struct sess *sp)
if (vep->o_wait > 0) {
lcb = vep->cb(vep->sp, 0, VGZ_ALIGN);
vep_emit_common(vep, lcb - vep->o_last, vep->last_mark);
- (void)vep->cb(vep->sp, 0, VGZ_FINISH);
}
+ (void)vep->cb(vep->sp, 0, VGZ_FINISH);
sp->wrk->vep = NULL;
More information about the varnish-commit
mailing list