aboutsummaryrefslogtreecommitdiffstats
path: root/tools/http-status-codes.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-02-04 21:20:48 +0100
committerKim Alvefur <zash@zash.se>2022-02-04 21:20:48 +0100
commite6f20da22f14214d569b1a5e92d54a1d3f530ff9 (patch)
treedf8d4d4e686043d38f5161b12093d10f54c511f0 /tools/http-status-codes.lua
parent99a880ebe5e45655d63e1a72866d2d44b7497fd9 (diff)
downloadprosody-e6f20da22f14214d569b1a5e92d54a1d3f530ff9.tar.gz
prosody-e6f20da22f14214d569b1a5e92d54a1d3f530ff9.zip
tools: Allow processing instructions in some XML parsing tools
IANA registry files have XSLT references, which are harmless to ignore.
Diffstat (limited to 'tools/http-status-codes.lua')
-rw-r--r--tools/http-status-codes.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/http-status-codes.lua b/tools/http-status-codes.lua
index 39bee74c..bd5bb52a 100644
--- a/tools/http-status-codes.lua
+++ b/tools/http-status-codes.lua
@@ -1,7 +1,7 @@
-- Generate net/http/codes.lua from IANA HTTP status code registry
local xml = require "util.xml";
-local registry = xml.parse(io.read("*a"));
+local registry = xml.parse(io.read("*a"), { allow_processing_instructions = true });
io.write([[