commit | ec1005134995d5c9da0d8c8b20ab96856449d83c | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Mon Jul 24 15:38:41 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon Jul 24 17:15:47 2017 +0200 |
tree | 533d5131dabe9d845ac59c4068812c8abb4c9d54 | |
parent | a9f040453acc09e888c3f2dc983f15dcf3fa66e3 [diff] |
MINOR: samples: Handle the type SMP_T_METH when we duplicate a sample in smp_dup First, the type SMP_T_METH was not handled by smp_dup function. It was never called with this kind of samples, so it's not really a problem. But, this could be useful in future. For all known HTTP methods (GET, POST...), there is no extra space allocated for a sample of type SMP_T_METH. But for unkown methods, it uses a chunk. So, like for strings, we duplicate data, using a trash chunk.