[njs] XML: fixed serializeToString().
noreply at nginx.com
noreply at nginx.com
Thu Mar 27 16:05:02 UTC 2025
details: https://github.com/nginx/njs/commit/1f1dd0ae9a97fc4acd14751403be547c8575edb5
branches: master
commit: 1f1dd0ae9a97fc4acd14751403be547c8575edb5
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Wed, 26 Feb 2025 22:12:31 -0800
description:
XML: fixed serializeToString().
Previously, serializeToString() was exclusiveC14n() which returned
string instead of Buffer. According to the published documentation it
should be c14n().
---
external/njs_xml_module.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/external/njs_xml_module.c b/external/njs_xml_module.c
index d5ab9ddd..f66c8cdb 100644
--- a/external/njs_xml_module.c
+++ b/external/njs_xml_module.c
@@ -181,7 +181,7 @@ static njs_external_t njs_ext_xml[] = {
.enumerable = 1,
.u.method = {
.native = njs_xml_ext_canonicalization,
- .magic8 = 3,
+ .magic8 = 2,
}
},
More information about the nginx-devel
mailing list