[Varnish] #571: Assert error while setting header using inline C-code

Varnish varnish-bugs at projects.linpro.no
Sat Oct 31 00:17:46 CET 2009


#571: Assert error while setting header using inline C-code
----------------------------+-----------------------------------------------
 Reporter:  maheshollalwar  |        Owner:  phk
     Type:  defect          |       Status:  new
 Priority:  normal          |    Milestone:     
Component:  varnishd        |      Version:  2.0
 Severity:  critical        |   Resolution:     
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by kb):

 VRT_SetHdr(sp, HDR_REQ, "\007R-CN:",country,vrt_magic_string_end);

 I think you want this:

 VRT_SetHdr(sp, HDR_REQ, "\005R-CN:",country,vrt_magic_string_end);

 Not a bug -- the initial number needs to accurately reflect the length of
 the header name, including colon.

 Ken

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/571#comment:1>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list