aboutsummaryrefslogtreecommitdiffstats
path: root/net
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
commitbf9705c70b9bc7dc960a9a87005dcbb08b82d5e3 (patch)
treef7697451e1e68f81a702fb787b7a049407aa2199 /net
parent51b193594f84daa97e53c05124b7bb30d9e74fbd (diff)
downloadprosody-bf9705c70b9bc7dc960a9a87005dcbb08b82d5e3.tar.gz
prosody-bf9705c70b9bc7dc960a9a87005dcbb08b82d5e3.zip
net.httpserver: Make function local, fixes loading since there is no environment [luacheck]
Diffstat (limited to 'net')
-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