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 | f92ac105217bda954ee20e7e64d0bef473b4da55 (patch) | |
tree | f7697451e1e68f81a702fb787b7a049407aa2199 /net/httpserver.lua | |
parent | e373961a7c84878059c4eae9bc794e1557da2730 (diff) | |
download | prosody-f92ac105217bda954ee20e7e64d0bef473b4da55.tar.gz prosody-f92ac105217bda954ee20e7e64d0bef473b4da55.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 |