]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] http: rely on proxy->acl_requires to allocate hdr_idx
authorWilly Tarreau <w@1wt.eu>
Fri, 10 Jul 2009 21:52:51 +0000 (23:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Jul 2009 21:52:51 +0000 (23:52 +0200)
commitbf2886274c38c281d8b3c9d9ad92b61bbcb2c503
tree8f3b8cb2e876f10c432beaef7d95c29ca6652a86
parenta9fb08317fd21361c9391db68a33591b41b13cf3
[MINOR] http: rely on proxy->acl_requires to allocate hdr_idx

Right now only HTTP proxies may use HTTP headers in ACLs, but
when this evolves, we'll need to be able to allocate the hdr_idx
on demand. The solution consists in allocating it only when it is
certain that at least one ACL requires HTTP parsing, regardless
of the mode the proxy is in. This is what is achieved by this
patch.
src/client.c