From 95d169ba9a64fa8e160c6806725329df67499e5e Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 17 Jan 2020 23:21:59 +0100 Subject: [PATCH] REGTEST: Fix format of set-uri HTTP request rule in h1or2_to_h1c.vtc First, concat() is a converter, not a sample fetch. So use str() sample fetch with no string and call concat on it. Then, the argument of the set-uri rule must be a log format string. So it must be inside %[] to be evaluated. --- reg-tests/http-rules/h1or2_to_h1c.vtc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reg-tests/http-rules/h1or2_to_h1c.vtc b/reg-tests/http-rules/h1or2_to_h1c.vtc index 0ed0984d8..3fbc3f747 100644 --- a/reg-tests/http-rules/h1or2_to_h1c.vtc +++ b/reg-tests/http-rules/h1or2_to_h1c.vtc @@ -57,7 +57,7 @@ haproxy h1 -conf { http-request set-header sl1 "sl1: " http-request set-method "%[str(GET)]" - http-request set-uri concat(/bu/,req.uri,/eu) + http-request set-uri %[str(),concat(/bu/,req.uri,/eu)] http-request set-path "/bp/%[var(req.path)]/ep" http-request set-query "bq&%[var(req.query)]&eq" @@ -124,7 +124,7 @@ haproxy h1 -conf { http-request set-header sl1 "sl1: " http-request set-method "%[str(GET)]" - http-request set-uri concat(/bu/,req.uri,/eu) + http-request set-uri %[str(),concat(/bu/,req.uri,/eu)] http-request set-path "/bp/%[var(req.path)]/ep" http-request set-query "bq&%[var(req.query)]&eq"