diff options
author | Petr Špaček <petr.spacek@nic.cz> | 2020-03-31 16:01:47 +0200 |
---|---|---|
committer | Tomas Krizek <tomas.krizek@nic.cz> | 2020-04-02 13:57:32 +0200 |
commit | bf406a500b9524ea9d16526e45f7afba560e3dae (patch) | |
tree | 26afc6f4f5d20b00b250acda0aeefd5a16d67eff /modules/daf | |
parent | http: also log results of HTTP requests (diff) | |
download | knot-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.lua | 2 |
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 |