]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: http_act: mark normalize-uri as experimental
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 6 May 2021 13:50:12 +0000 (15:50 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 7 May 2021 12:35:02 +0000 (14:35 +0200)
normalize-uri http rule is marked as experimental, so it cannot be
activated without the global 'expose-experimental-directives'. The
associated vtc is updated to be able to use it.

doc/configuration.txt
reg-tests/http-rules/normalize_uri.vtc
src/http_act.c

index 19f180884f1c1539501229733f343f26b6a753c4..f33c97552c7b97a8a48bb74e46a5cffe6d2c94e1 100644 (file)
@@ -6174,9 +6174,10 @@ http-request normalize-uri query-sort-by-name [ { if | unless } <condition> ]
   Performs normalization of the request's URI.
 
   URI normalization in HAProxy 2.4 is currently available as an experimental
-  technical preview. You should be prepared that the behavior of normalizers
-  might change to fix possible issues, possibly breaking proper request
-  processing in your infrastructure.
+  technical preview. As such, it requires the global directive
+  'expose-experimental-directives' first to be able to invoke it. You should be
+  prepared that the behavior of normalizers might change to fix possible
+  issues, possibly breaking proper request processing in your infrastructure.
 
   Each normalizer handles a single type of normalization to allow for a
   fine-grained selection of the level of normalization that is appropriate for
index cc880606676cee57f72f56fd2e26d2475a54c999..47032d96c0ffc79c8d0b1b41cce7c914c2ff14a4 100644 (file)
@@ -11,6 +11,9 @@ server s1 {
 } -repeat 63 -start
 
 haproxy h1 -conf {
+    global
+        expose-experimental-directives
+
     defaults
         mode http
         timeout connect 1s
index 2fe235e48d2aaad65b384098e2c88ecfda17031a..b8413f33185f8e822a15ea7f0745da20d286b86f 100644 (file)
@@ -2449,7 +2449,7 @@ static struct action_kw_list http_req_actions = {
                { "deny",             parse_http_deny,                 0 },
                { "disable-l7-retry", parse_http_req_disable_l7_retry, 0 },
                { "early-hint",       parse_http_set_header,           0 },
-               { "normalize-uri",    parse_http_normalize_uri,        0 },
+               { "normalize-uri",    parse_http_normalize_uri,        KWF_EXPERIMENTAL },
                { "redirect",         parse_http_redirect,             0 },
                { "reject",           parse_http_action_reject,        0 },
                { "replace-header",   parse_http_replace_header,       0 },