]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] http: fix space handling in the response cookie parser
authorWilly Tarreau <w@1wt.eu>
Tue, 31 Aug 2010 20:39:35 +0000 (22:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Aug 2010 22:02:44 +0000 (00:02 +0200)
commit24581bae022bcf97ea7818e49ef27d21c92d6aa3
tree5d94c95ba840b41232daaf88a96b84f06df8a48a
parenteb7b0a2b56e9b9cb9df170589699b53c1f0a7350
[MEDIUM] http: fix space handling in the response cookie parser

This patch addresses exactly the same issues as the previous one, but
for responses this time. It also introduces implicit support for the
Set-Cookie2 header, for which there's almost nothing specific to do
since it is a clean header. This one allows multiple cookies in a
same header, by respecting the HTTP messaging semantics.

The new parser has been tested with insertion, rewrite, passive,
removal, prefixing and captures, and it looks OK. It's still able
to rewrite (or delete) multiple cookies at once. Just as with the
request parser, it tries hard to fix formating of the cookies it
displaces.

This patch too should be backported to 1.4 and possibly to 1.3.
src/proto_http.c