util.x509: Nameprep commonName once
[prosody.git] / net / httpserver.lua
blob6b14313b16e1c1ecff245a2351adfd5fe5aa649f
1 -- COMPAT w/pre-0.9
2 local log = require "util.logger".init("net.httpserver");
3 local traceback = debug.traceback;
5 local _ENV = nil;
6 -- luacheck: std none
8 local function fail()
9 log("error", "Attempt to use legacy HTTP API. For more info see https://prosody.im/doc/developers/legacy_http");
10 log("error", "Legacy HTTP API usage, %s", traceback("", 2));
11 end
13 return {
14 new = fail;
15 new_from_config = fail;
16 set_default_handler = fail;