mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
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.
This commit is contained in:
parent
1aea50e1ff
commit
95d169ba9a
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue