Willy: The idea is to take the original header, and preserve its contents appending the additional information to it. For example, if we have
http-response append-header Set-Cookie ;a=b Then if haproxy sees Set-Cookie: foo=bar It will forward out Set-Cookie: foo=bar;a=b instead. Perhaps append-to-header is a better name for this option. On Mon, May 19, 2014 at 2:24 PM, Willy Tarreau <[email protected]> wrote: > Hi Sasha, > > On Mon, May 19, 2014 at 02:10:59PM -0600, Sasha Pachev wrote: >> The attached patch implements a new append-header configuration >> directive. Currently we can modify the header with set-header or >> add-header, but we do not have a way to append to the header, and in >> some cases it is desirable. >> >> The patch is against dev24. I have not tested if it cleanly applies to >> the most recent source, but I figured I'd wait for feedback on the >> possibility of it being accepted/fixups needed for it to happen before >> I do the work. > > Thanks, but I must be dumb, I don't understand the difference between > that and add-header, and it's not obvious from the code since you seem > to be building a new header. Could you please clarify ? > > Thanks, > Willy > > -- Sasha Pachev Fast Running Blog. http://fastrunningblog.com Run. Blog. Improve. Repeat.

