net.httpserver: Make function local, fixes loading since there is no environment [luacheck]

remotes/origin/0.11
Kim Alvefur 8 years ago
parent 51b193594f
commit bf9705c70b
  1. 2
      net/httpserver.lua

@ -5,7 +5,7 @@ local traceback = debug.traceback;
local _ENV = nil;
-- luacheck: std none
function fail()
local function fail()
log("error", "Attempt to use legacy HTTP API. For more info see https://prosody.im/doc/developers/legacy_http");
log("error", "Legacy HTTP API usage, %s", traceback("", 2));
end

Loading…
Cancel
Save