]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: pattern: retrieve the sample type in the sample, not in the keyword description
authorWilly Tarreau <w@1wt.eu>
Mon, 23 Apr 2012 20:38:26 +0000 (22:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 18:57:16 +0000 (20:57 +0200)
commitb8c8f1f61170a9e8fef9eaad03ac8f66b0a035ab
tree649473b9fafc46da55b3a7655f234d88ac421d85
parent342acb4775e57d6a5b014400941d5ab8a707d9aa
MEDIUM: pattern: retrieve the sample type in the sample, not in the keyword description

We need the pattern fetchers and converters to correctly set the output type
so that they can be used by ACL fetchers. By using the sample type instead of
the keyword type, we also open the possibility to create some multi-type
pattern fetch methods later (eg: "src" being v4/v6). Right now the type in
the keyword is used to validate the configuration.
src/pattern.c
src/proto_http.c
src/proto_tcp.c