diff tools/http-status-codes.lua @ 13142:879a6a33c21b

tools: Update imports to use new prosody.* namespace
author Kim Alvefur <zash@zash.se>
date Thu, 08 Jun 2023 09:37:01 +0200
parents f31bb79f51d7
children
line wrap: on
line diff
--- a/tools/http-status-codes.lua	Sat Jun 10 13:06:05 2023 +0200
+++ b/tools/http-status-codes.lua	Thu Jun 08 09:37:01 2023 +0200
@@ -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([[