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

Varnish varnish-bugs at projects.linpro.no
Mon Nov 2 06:00:40 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 maheshollalwar):

 Thanks, it works...

 ~Mahesh.

 Replying to [comment:1 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:2>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list