Page MenuHomePhabricator
Paste P3083

Random fix attempt!
ActivePublic

Authored by BBlack on May 13 2016, 3:25 PM.
Project Tags
Referenced Files
F4006252: Random fix attempt!
May 13 2016, 3:25 PM
Subscribers
None
diff --git a/bin/varnishd/cache/cache_req_fsm.c b/bin/varnishd/cache/cache_req_fsm.c
index 1a59ae2..6c40163 100644
--- a/bin/varnishd/cache/cache_req_fsm.c
+++ b/bin/varnishd/cache/cache_req_fsm.c
@@ -58,7 +58,7 @@ cnt_vdp(struct req *req, struct busyobj *bo)
CHECK_OBJ_NOTNULL(req->transport, TRANSPORT_MAGIC);
resp_len = http_GetContentLength(req->resp);
- if (bo != NULL)
+ if (bo != NULL && !bo->was_304)
req->resp_len = resp_len;
else
req->resp_len = ObjGetLen(req->wrk, req->objcore);