diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-28 16:41:35 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-28 16:41:35 +0100 |
commit | 54533bf122095fce26d32614040ad3261b0f89fa (patch) | |
tree | 026756495dbd59e67a4e7d634caad12020a956be | |
parent | 712235990b38806ec957a2a891f06a7f6e2b4fc8 (diff) | |
download | prosody-54533bf122095fce26d32614040ad3261b0f89fa.tar.gz prosody-54533bf122095fce26d32614040ad3261b0f89fa.zip |
net.httpserver: Add compatibility stub
-rw-r--r-- | net/httpserver.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/httpserver.lua b/net/httpserver.lua new file mode 100644 index 00000000..7d574788 --- /dev/null +++ b/net/httpserver.lua @@ -0,0 +1,15 @@ +-- COMPAT w/pre-0.9 +local log = require "util.logger".init("net.httpserver"); +local traceback = debug.traceback; + +module "httpserver" + +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; |