Mercurial > prosody-hg
diff tools/http-status-codes.lua @ 12271:f31bb79f51d7
tools: Allow processing instructions in some XML parsing tools
IANA registry files have XSLT references, which are harmless to ignore.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 04 Feb 2022 21:20:48 +0100 |
| parents | cce55767004a |
| children | 879a6a33c21b |
line wrap: on
line diff
--- a/tools/http-status-codes.lua Fri Feb 04 20:47:39 2022 +0100 +++ b/tools/http-status-codes.lua Fri Feb 04 21:20:48 2022 +0100 @@ -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([[
