REGTESTS: sample: Test the behavior of consecutive delimiters for the field converter
This is in preparation of a follow-up patch to fix the word converter.
(cherry picked from commit 8f8349fbefab53335e434585b32e1eca077e05b1)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 3c00a713a05e4a90d8196be8bd93a61cf12482d5)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 6419b627283754288e85365bc2a4345d0ff36533)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 1b66b70ef0703f42536d5715819374f3ac239387)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
diff --git a/reg-tests/converter/field.vtc b/reg-tests/converter/field.vtc
index e5a80e3..54ae6c7 100644
--- a/reg-tests/converter/field.vtc
+++ b/reg-tests/converter/field.vtc
@@ -32,6 +32,10 @@
rxresp
expect resp.status == 200
expect resp.http.found == "bar"
+ txreq -url "/foo//bar/baz"
+ rxresp
+ expect resp.status == 200
+ expect resp.http.found == ""
txreq -url "/foo"
rxresp
expect resp.status == 200