aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2021-03-19 10:38:54 +0200
committerSergey Poznyakoff <gray@gnu.org>2021-03-19 10:39:14 +0200
commitef152fcb50337cf30827db0cc86bcbfa3b16e09d (patch)
treef0de51be311359073e782f27fa53f8e054ae2459
parent4dfc07c3ff5062fbe4f6cb02698b13d1762cf7a3 (diff)
downloadhaproxy-bulkredirect-ef152fcb50337cf30827db0cc86bcbfa3b16e09d.tar.gz
haproxy-bulkredirect-ef152fcb50337cf30827db0cc86bcbfa3b16e09d.tar.bz2
Add missing test config
-rw-r--r--bulkredirect.lua3
-rw-r--r--t/f.tab5
2 files changed, 6 insertions, 2 deletions
diff --git a/bulkredirect.lua b/bulkredirect.lua
index ac24e42..b8eab35 100644
--- a/bulkredirect.lua
+++ b/bulkredirect.lua
@@ -326,7 +326,6 @@ local function set_dst (dt, src, dst)
elseif type(dt[path]) == 'string' then
dt[path] = { { dt[path] }, {} }
end
- core.Info(require('inspect')(dt[path]))
dt[path][2][query] = dst
elseif type(dt[src]) == 'table' then
dt[src][1] = dst
@@ -507,7 +506,7 @@ local function load_redirect_table ()
if not status then
core.Alert(err)
end
--- print(require('inspect')(rt))
+ -- print(require('inspect')(rt))
else
core.Alert("can't open " .. name .. ": " .. err)
end
diff --git a/t/f.tab b/t/f.tab
new file mode 100644
index 0000000..d8b6015
--- /dev/null
+++ b/t/f.tab
@@ -0,0 +1,5 @@
+option urlencode
+[example.org]
+/lørdag /saturday
+/lørdag?q=1 /satq?q=1
+/s%c3%b8ndag /sunday nourlencode

Return to:

Send suggestions and report system problems to the System administrator.