Hi Sasha,

On Mon, May 19, 2014 at 05:14:48PM -0600, Sasha Pachev wrote:
> 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.

OK I understand better now. However, I think that this transformation
is very specific and if we go down that route we'll have many similar
ones. I suggest that instead we focus on applying sed-like regex-based
transformations which will allow this and many other things at the same
time.

Also, in your case, you seem to apply the change to the first header
found only, though in theory it should be applied to every header value
or every header line depending on the use case. That's probably one more
reason for doing it a-la-sed :-)

Best regards,
Willy


Reply via email to