commit | ae3c01022622da4c1733a15f3f01cb8b9e82b382 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Apr 28 23:22:08 2014 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Apr 29 00:46:01 2014 +0200 |
tree | 219b4e8e8f2cd4f17ce421da774d006f10229e1c | |
parent | f75e5c3d84ee5a67c6ebc5aeb5c708a27d934ae0 [diff] |
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.