[PATCH] Concatenate Set-Cookie headers before a call to vcl_fetch()

lee doolan lee.doolan at volcanomail.com
Sun Jun 6 08:54:22 CEST 2010


I have modified a 2.1.2el5 distribution slightly.  

All of the set-cookie headers from a backend response are
concatenated, with separators between them, and then the resulting
string is written into a header named x-set-cookies.  This is done
just before a call to vcl_fetch().  After the call to vcl_fetch(), the
x-set-cookies header is removed.  The code is here, in github:

     http://github.com/leed25d/ljVarnishPatch

The code may be slightly rough around the edges as I have not done any
C coding for around 10 years, but the modification works well enough
to make our system admins pretty happy.

--lee



More information about the varnish-dev mailing list