[Varnish] #216: String concatenation in functions

Varnish varnish-bugs at projects.linpro.no
Fri Jun 20 15:24:40 CEST 2008

#216: String concatenation in functions
 Reporter:  teddy     |        Owner:  phk      
     Type:  defect    |       Status:  new      
 Priority:  normal    |    Milestone:  After 2.0
Component:  varnishd  |      Version:  trunk    
 Severity:  normal    |   Resolution:           
 Keywords:            |  
Changes (by phk):

  * milestone:  => After 2.0


 You are right of course, string concatenation should work everywhere, but
 right now it only works for header assignment.

 To properly fix this, requires major surgery to the VCL compiler, which I
 don't want to do right before the 2.0 release.

 The obvious workaround is to use header assignmnt as a temporary variable:
      set req.http.foobar = req.url "#" req.http.host "#";
      remove req.http.foobar;

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

More information about the varnish-bugs mailing list