summaryrefslogtreecommitdiffstats
path: root/server.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server.lua')
-rw-r--r--server.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.lua b/server.lua
index 727b339..457e238 100644
--- a/server.lua
+++ b/server.lua
@@ -118,11 +118,11 @@ return function(env)
function()
if stringy.startswith(path, '/meta/') then
if method ~= 'GET' then return 405 end
- return 200, nil, txn:meta(string.sub(path, 6, -1))
+ return 200, nil, txn:meta(path:sub(6, -1))
end
if stringy.startswith(path, '/config/') then
- path = string.sub(path, 8, -1)
+ path = path:sub(8, -1)
local parent, name, res
if path ~= '/' then