commit | bf2886274c38c281d8b3c9d9ad92b61bbcb2c503 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Jul 10 23:52:51 2009 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Jul 10 23:52:51 2009 +0200 |
tree | 8f3b8cb2e876f10c432beaef7d95c29ca6652a86 | |
parent | a9fb08317fd21361c9391db68a33591b41b13cf3 [diff] |
[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.