[Varnish] #432: Multiple lines of Set-Cookie in response headers aren't reflected in obj.http.Set-Cookie

Varnish varnish-bugs at projects.linpro.no
Mon Mar 16 04:42:07 CET 2009


#432: Multiple lines of Set-Cookie in response headers aren't reflected in
obj.http.Set-Cookie
------------------------+---------------------------------------------------
 Reporter:  Mitchua     |        Owner:  phk
     Type:  defect      |       Status:  new
 Priority:  normal      |    Milestone:     
Component:  varnishd    |      Version:  2.0
 Severity:  normal      |   Resolution:     
 Keywords:  Set-Cookie  |  
------------------------+---------------------------------------------------
Comment (by dixond):

 I confirm this definitely doesn't seem to work correctly. EG, in vcl_fetch
 I have:

 {{{
 set obj.http.Stupid = obj.http.Set-Cookie;
 }}}

 And the result on a page that has two Set-Cookie lines is:

 {{{
 Set-Cookie: I18N_LANGUAGE="en"; Path=/

 Set-Cookie: cmsdir="/edit-cms"; Path=/

 Stupid: I18N_LANGUAGE="en"; Path=/

 }}}

 I am trying to make some decisions in vcl_fetch about whether to insert or
 pass an object based on what the backend has sent in terms of set-cookie
 (eg, is this a user-specific cookie or something else?), but my regex does
 not seem able to match against the contents of Set-Cookie at all, which is
 possibly because it doesn't really contain the full list of possible
 cookies...?

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


More information about the varnish-bugs mailing list