]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http: factorize the "auth" action of http-request and stats
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Apr 2014 21:22:08 +0000 (23:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Apr 2014 22:46:01 +0000 (00:46 +0200)
commitae3c01022622da4c1733a15f3f01cb8b9e82b382
tree219b4e8e8f2cd4f17ce421da774d006f10229e1c
parentf75e5c3d84ee5a67c6ebc5aeb5c708a27d934ae0
MEDIUM: http: factorize the "auth" action of http-request and stats

Both use exactly the same mechanism, except for the choice of the
default realm to be emitted when none is selected. It can be achieved
by simply comparing the ruleset with the stats' for now. This achieves
a significant code reduction and further, removes the dependence on
the pointer to the final rule in the caller.
src/proto_http.c