summaryrefslogtreecommitdiffstats
path: root/modules/daf
diff options
context:
space:
mode:
authorPetr Špaček <petr.spacek@nic.cz>2020-03-31 16:01:47 +0200
committerTomas Krizek <tomas.krizek@nic.cz>2020-04-02 13:57:32 +0200
commitbf406a500b9524ea9d16526e45f7afba560e3dae (patch)
tree26afc6f4f5d20b00b250acda0aeefd5a16d67eff /modules/daf
parenthttp: also log results of HTTP requests (diff)
downloadknot-resolver-bf406a500b9524ea9d16526e45f7afba560e3dae.tar.xz
knot-resolver-bf406a500b9524ea9d16526e45f7afba560e3dae.zip
daf: fix HTTP DELETE
Rule ID is a number, not a string.
Diffstat (limited to 'modules/daf')
-rw-r--r--modules/daf/daf.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/daf/daf.lua b/modules/daf/daf.lua
index 94d0a49d..0a5a98df 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