aboutsummaryrefslogtreecommitdiffstats
path: root/net/httpserver.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-02-21 10:45:24 +0100
committerKim Alvefur <zash@zash.se>2015-02-21 10:45:24 +0100
commit9ed000c898c88bf13d372b77afcf986ff937ca5b (patch)
treebe2b22a52a3523d84b2550ded4489cd85efecc31 /net/httpserver.lua
parent075278ff98d8d5d8026b07b277cef08a474a6eec (diff)
downloadprosody-9ed000c898c88bf13d372b77afcf986ff937ca5b.tar.gz
prosody-9ed000c898c88bf13d372b77afcf986ff937ca5b.zip
net.*: Remove use of module() function
Diffstat (limited to 'net/httpserver.lua')
-rw-r--r--net/httpserver.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/net/httpserver.lua b/net/httpserver.lua
index 7d574788..6e2e31b9 100644
--- a/net/httpserver.lua
+++ b/net/httpserver.lua
@@ -2,14 +2,15 @@
local log = require "util.logger".init("net.httpserver");
local traceback = debug.traceback;
-module "httpserver"
+local _ENV = nil;
function fail()
log("error", "Attempt to use legacy HTTP API. For more info see http://prosody.im/doc/developers/legacy_http");
log("error", "Legacy HTTP API usage, %s", traceback("", 2));
end
-new, new_from_config = fail, fail;
-set_default_handler = fail;
-
-return _M;
+return {
+ new = fail;
+ new_from_config = fail;
+ set_default_handler = fail;
+};