aboutsummaryrefslogtreecommitdiffstats
path: root/tools/http-status-codes.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tools/http-status-codes.lua')
-rw-r--r--tools/http-status-codes.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/http-status-codes.lua b/tools/http-status-codes.lua
index bd5bb52a..38f44992 100644
--- a/tools/http-status-codes.lua
+++ b/tools/http-status-codes.lua
@@ -1,6 +1,9 @@
-- Generate net/http/codes.lua from IANA HTTP status code registry
+if not pcall(require, "prosody.loader") then
+ pcall(require, "loader");
+end
-local xml = require "util.xml";
+local xml = require "prosody.util.xml";
local registry = xml.parse(io.read("*a"), { allow_processing_instructions = true });
io.write([[