MEDIUM: capture: Allow capture with slot identifier
authorThierry FOURNIER <tfournier@haproxy.com>
Tue, 26 May 2015 15:58:29 +0000 (17:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 May 2015 11:50:29 +0000 (13:50 +0200)
commit82bf70dff4eff42397fecfcb9e97a0a7ce721c49
tree0dee828dc9a24480cc416610f05505b543ae0521
parent35ab27561ee659a0cedc95e8061417c36e2e7b55
MEDIUM: capture: Allow capture with slot identifier

This patch modifies the current http-request capture function
and adds a new keyword "id" that permits to identify a capture slot.
If the identified doesn't exists, the action fails silently.

Note that this patch removs an unused list initilisation, which seems
to be inherited from a copy/paste. It's harmless and does not need to
be backported.

   LIST_INIT((struct list *)&rule->arg.act.p[0]);
doc/configuration.txt
src/proto_http.c