aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-23 13:20:19 +0100
committerKim Alvefur <zash@zash.se>2018-03-23 13:20:19 +0100
commitf92ac105217bda954ee20e7e64d0bef473b4da55 (patch)
treef7697451e1e68f81a702fb787b7a049407aa2199
parente373961a7c84878059c4eae9bc794e1557da2730 (diff)
downloadprosody-f92ac105217bda954ee20e7e64d0bef473b4da55.tar.gz
prosody-f92ac105217bda954ee20e7e64d0bef473b4da55.zip
net.httpserver: Make function local, fixes loading since there is no environment [luacheck]
-rw-r--r--net/httpserver.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/httpserver.lua b/net/httpserver.lua
index f77b3dac..6b14313b 100644
--- a/net/httpserver.lua
+++ b/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