# HG changeset patch # User Kim Alvefur # Date 1521807619 -3600 # Node ID adc17a2bd6fd20ad23a1c0e5586895d23e3e7944 # Parent b86f789ac9bd1a9548e478385e1eb1e73946d918 net.httpserver: Make function local, fixes loading since there is no environment [luacheck] diff -r b86f789ac9bd -r adc17a2bd6fd net/httpserver.lua --- a/net/httpserver.lua Fri Mar 23 13:18:28 2018 +0100 +++ b/net/httpserver.lua Fri Mar 23 13:20:19 2018 +0100 @@ -5,7 +5,7 @@ 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