[master] d9a6da6 Get OA_HEADERS using the accessor function

Poul-Henning Kamp phk at FreeBSD.org
Tue Aug 12 22:37:21 CEST 2014


commit d9a6da6d104b2544d904c48c4b98e2bf139bda50
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Aug 12 20:37:07 2014 +0000

    Get OA_HEADERS using the accessor function

diff --git a/bin/varnishd/cache/cache_req_fsm.c b/bin/varnishd/cache/cache_req_fsm.c
index ecdbe15..c01d7b7 100644
--- a/bin/varnishd/cache/cache_req_fsm.c
+++ b/bin/varnishd/cache/cache_req_fsm.c
@@ -105,7 +105,8 @@ cnt_deliver(struct worker *wrk, struct req *req)
 		EXP_Touch(req->objcore, req->t_prev);
 
 	HTTP_Setup(req->resp, req->ws, req->vsl, SLT_RespMethod);
-	AZ(HTTP_Decode(req->resp, req->obj->oa_http));
+	AZ(HTTP_Decode(req->resp, 
+	    ObjGetattr(req->objcore, &req->wrk->stats, OA_HEADERS, NULL)));
 	http_ForceField(req->resp, HTTP_HDR_PROTO, "HTTP/1.1");
 
 	if (req->wrk->stats.cache_hit)



More information about the varnish-commit mailing list