net.server_event: Check the buffer *length*, not the buffer itself (Fixes 100% cpu...
[prosody.git] / net / httpserver.lua
1 -- COMPAT w/pre-0.9
2 local log = require "util.logger".init("net.httpserver");
3 local traceback = debug.traceback;
4
5 module "httpserver"
6
7 function fail()
8         log("error", "Attempt to use legacy HTTP API. For more info see http://prosody.im/doc/developers/legacy_http");
9         log("error", "Legacy HTTP API usage, %s", traceback("", 2));
10 end
11
12 new, new_from_config = fail, fail;
13 set_default_handler = fail;
14
15 return _M;