commit | 302b9f8d7a3805bfd25ecf267a8ddd730c6887b3 | [log] [tgz] |
---|---|---|
author | Maciej Zdeb <maciej@zdeb.pl> | Fri Nov 20 12:12:24 2020 +0000 |
committer | Willy Tarreau <w@1wt.eu> | Sat Nov 21 15:54:26 2020 +0100 |
tree | 8abad71b7acf6531903b19a6b689f4176f7d8c85 | |
parent | 41378899111d9bc77c871d0fdc21088cce547054 [diff] |
BUG/MINOR: http_htx: Fix searching headers by substring Function __http_find_header is used to search headers by name using specified matching method. Matching by substring returned unexpected results due to wrong length of substring supplied to strnistr function. Fixed also the boolean condition by inverting it, as we're interested in headers that contains the substring. This patch should be backported as far as 2.2