From: Petr Špaček Date: Tue, 31 Mar 2020 14:01:47 +0000 (+0200) Subject: daf: fix HTTP DELETE X-Git-Tag: v5.1.0~21^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf406a500b9524ea9d16526e45f7afba560e3dae;p=thirdparty%2Fknot-resolver.git daf: fix HTTP DELETE Rule ID is a number, not a string. --- diff --git a/modules/daf/daf.lua b/modules/daf/daf.lua index 94d0a49d0..0a5a98df4 100644 --- a/modules/daf/daf.lua +++ b/modules/daf/daf.lua @@ -251,7 +251,7 @@ local function api(h, stream) local path = h:get(':path') local id = tonumber(path:match '/([^/]*)$') if id then - if consensus('daf.del "%s"', id) then + if consensus('daf.del(%s)', id) then return tojson(true) end return 404, '"No such rule"' -- Not found