]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stick-table: add sc-add-gpc() to http-after-response
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 17 Mar 2023 10:28:58 +0000 (11:28 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 17 Mar 2023 12:09:09 +0000 (13:09 +0100)
sc-add-gpc() was implemented in 5a72d03 ("MINOR: stick-table:
implement the sc-add-gpc() action")

This new action was exposed everywhere sc-inc-gpc() is available,
except for http-after-response.
But there doesn't seem to be a technical constraint that prevents us from
exposing it in http-after-response.
It was probably overlooked, let's add it.

No backport needed, unless 5a72d03 ("MINOR: stick-table: implement the
sc-add-gpc() action") is being backported.

src/stick_table.c

index de40f413b1f21675561a4a153da0457359a419cb..d7487050231a50be4eb1e94a779df64a03dfd8f3 100644 (file)
@@ -5326,6 +5326,7 @@ static struct action_kw_list http_res_kws = { { }, {
 INITCALL1(STG_REGISTER, http_res_keywords_register, &http_res_kws);
 
 static struct action_kw_list http_after_res_kws = { { }, {
+       { "sc-add-gpc",  parse_add_gpc,  KWF_MATCH_PREFIX },
        { "sc-inc-gpc",  parse_inc_gpc,  KWF_MATCH_PREFIX },
        { "sc-inc-gpc0", parse_inc_gpc,  KWF_MATCH_PREFIX },
        { "sc-inc-gpc1", parse_inc_gpc,  KWF_MATCH_PREFIX },