[master] e3aecb2 Use the correct test for streaming.
Poul-Henning Kamp
phk at FreeBSD.org
Thu Jan 28 12:49:20 CET 2016
commit e3aecb2b5928897206dceb1a00e66ff22f2d8ae5
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Jan 22 10:27:55 2016 +0000
Use the correct test for streaming.
diff --git a/bin/varnishd/cache/cache_vrt_var.c b/bin/varnishd/cache/cache_vrt_var.c
index b76c069..cf25f67 100644
--- a/bin/varnishd/cache/cache_vrt_var.c
+++ b/bin/varnishd/cache/cache_vrt_var.c
@@ -670,7 +670,7 @@ VRT_r_resp_is_streaming(VRT_CTX)
if (ctx->req->objcore == NULL)
return (0); /* When called from vcl_synth */
CHECK_OBJ_NOTNULL(ctx->req->objcore, OBJCORE_MAGIC);
- return (ctx->req->objcore->flags & OC_F_INCOMPLETE ? 1 : 0);
+ return (ctx->req->objcore->boc == NULL ? 0 : 1);
}
/*--------------------------------------------------------------------*/
More information about the varnish-commit
mailing list