From ef152fcb50337cf30827db0cc86bcbfa3b16e09d Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Fri, 19 Mar 2021 10:38:54 +0200 Subject: Add missing test config --- bulkredirect.lua | 3 +-- t/f.tab | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 t/f.tab 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 -- cgit v1.2.1