MINOR: http_act: Add -m flag for del-header name matching method
authorMaciej Zdeb <maciej@zdeb.pl>
Fri, 20 Nov 2020 13:58:48 +0000 (13:58 +0000)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 27 Nov 2020 13:57:34 +0000 (14:57 +0100)
commit3666246d9028f229b51339a3a03638bf1db7ebc2
treee2877cce50d124ea78c8ffc7fc196fb4f647c83d
parenta3bd824040fa003cec01cb55bf9d277e7af3aa6a
MINOR: http_act: Add -m flag for del-header name matching method

This patch adds -m flag which allows to specify header name
matching method when deleting headers from http request/response.
Currently beg, end, sub, str and reg are supported.

This is related to GitHub issue #909

(cherry picked from commit ebdd4c55da4360bde7878604ea528c2031a26541)
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
doc/configuration.txt
include/haproxy/action-t.h
reg-tests/http-rules/del_header.vtc [new file with mode: 0644]
src/http_act.c
src/http_ana.c