[Varnish] #1056: obj.* should be available in vcl_deliver

Varnish varnish-bugs at varnish-cache.org
Thu Dec 8 12:48:26 CET 2011


#1056: obj.* should be available in vcl_deliver
----------------------+-----------------------------------------------------
 Reporter:  scoof     |       Owner:  scoof
     Type:  defect    |      Status:  new  
 Priority:  low       |   Milestone:       
Component:  varnishd  |     Version:  trunk
 Severity:  minor     |    Keywords:       
----------------------+-----------------------------------------------------

Comment(by grahamlyons):

 We would like this functionality because it appears that most headers are
 thrown away from the response object when Varnish generates a 304.

 Accessing these returns nothing:
 {{{
 resp.http.X-Header
 VRT_GetHdr(sp, HDR_RESP, "\011X-Header:");
 }}}

 And accessing this stops the VCL from compiling
 {{{
 obj.http.X-Header
 }}}

 The header is still available via this method, but we're worried that the
 behaviour is undefined and might cause seg faults:
 {{{
 VRT_GetHdr(sp, HDR_OBJ, "\011X-Header:");
 }}}

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1056#comment:4>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list