]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] http: add http_remove_header2() to remove a header value.
authorWilly Tarreau <w@1wt.eu>
Mon, 18 Jan 2010 13:54:04 +0000 (14:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 18 Jan 2010 18:51:33 +0000 (19:51 +0100)
commit68085d8cfb7e8d8a18aa99caf5446a91bbed4e3a
tree4e134ac9e6f723d6448cb47cc5a593f3f41d6284
parent116f91e7a58999c24a526ddf199793845513c39c
[MINOR] http: add http_remove_header2() to remove a header value.

Calling this function after http_find_header2() automatically deletes
the current value of the header, and removes the header itself if the
value is the only one. The context is automatically adjusted for a
next call to http_find_header2() to return the next header. No other
change nor test should be made on the transient context though.
include/proto/proto_http.h
include/types/proto_http.h
src/proto_http.c