diff options
author | Kim Alvefur <zash@zash.se> | 2018-03-23 13:20:19 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-03-23 13:20:19 +0100 |
commit | bf9705c70b9bc7dc960a9a87005dcbb08b82d5e3 (patch) | |
tree | f7697451e1e68f81a702fb787b7a049407aa2199 /net/httpserver.lua | |
parent | 51b193594f84daa97e53c05124b7bb30d9e74fbd (diff) | |
download | prosody-bf9705c70b9bc7dc960a9a87005dcbb08b82d5e3.tar.gz prosody-bf9705c70b9bc7dc960a9a87005dcbb08b82d5e3.zip |
net.httpserver: Make function local, fixes loading since there is no environment [luacheck]
Diffstat (limited to 'net/httpserver.lua')
-rw-r--r-- | net/httpserver.lua | 2 |
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 |