]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: samples: Don't allocate memory for SMP_T_METH sample when method is known
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 24 Jul 2017 14:24:39 +0000 (16:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 24 Jul 2017 15:16:11 +0000 (17:16 +0200)
commitd02210cd30dad77711e58857e610cd9bd71c49ff
tree86968566f5d70ba2c5b84f1a9bf56188afa11945
parent5db105e8b2dea551a217dfb9f8fdb00c5a769332
MINOR: samples: Don't allocate memory for SMP_T_METH sample when method is known

For known methods (GET,POST...), in samples, an enum is used instead of a chunk
to reference the method. So there is no needs to allocate memory when a variable
is stored with this kind of sample.
src/vars.c