aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-18 15:21:30 +0200
committerKim Alvefur <zash@zash.se>2016-08-18 15:21:30 +0200
commitf30f5f62189373fe8a2081d1117fbc2977331f26 (patch)
tree8e9e00d11e3355088e816599971d98e13abc038f
parent860d3a58b873ee2289a989341e22cb46ebee947b (diff)
downloadprosody-f30f5f62189373fe8a2081d1117fbc2977331f26.tar.gz
prosody-f30f5f62189373fe8a2081d1117fbc2977331f26.zip
net.http.server: Add luacheck annotations
-rw-r--r--net/http/server.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/http/server.lua b/net/http/server.lua
index 93bbffb4..8aa28f5c 100644
--- a/net/http/server.lua
+++ b/net/http/server.lua
@@ -32,7 +32,7 @@ local function is_wildcard_match(wildcard_event, event)
end
local _handlers = events._handlers;
-local recent_wildcard_events = cache.new(10000, function (key, value)
+local recent_wildcard_events = cache.new(10000, function (key, value) -- luacheck: ignore 212/value
rawset(_handlers, key, nil);
end);
@@ -174,7 +174,7 @@ local headerfix = setmetatable({}, {
end
});
-function _M.hijack_response(response, listener)
+function _M.hijack_response(response, listener) -- luacheck: ignore
error("TODO");
end
function handle_request(conn, request, finish_cb)