From 1acb2295970f719318f922002c57bd9b4fbfd24f Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 14 Feb 2025 14:50:22 +0000 Subject: [PATCH] net.httpserver: Remove obsolete API --- net/httpserver.lua | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 net/httpserver.lua diff --git a/net/httpserver.lua b/net/httpserver.lua deleted file mode 100644 index 0dfd862e2..000000000 --- a/net/httpserver.lua +++ /dev/null @@ -1,17 +0,0 @@ --- COMPAT w/pre-0.9 -local log = require "prosody.util.logger".init("net.httpserver"); -local traceback = debug.traceback; - -local _ENV = nil; --- luacheck: std none - -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 - -return { - new = fail; - new_from_config = fail; - set_default_handler = fail; -};