]> git.kaiwu.me - njs.git/commitdiff
XML: fixed serializeToString().
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 27 Feb 2025 06:12:31 +0000 (22:12 -0800)
committerDmitry Volyntsev <xeioexception@gmail.com>
Thu, 27 Mar 2025 16:04:25 +0000 (09:04 -0700)
Previously, serializeToString() was exclusiveC14n() which returned
string instead of Buffer. According to the published documentation it
should be c14n().

external/njs_xml_module.c

index d5ab9ddd493d271df7449777343a84e6788cdf05..f66c8cdb714c6a86ce095d3d92cdf5811b682339 100644 (file)
@@ -181,7 +181,7 @@ static njs_external_t  njs_ext_xml[] = {
         .enumerable = 1,
         .u.method = {
             .native = njs_xml_ext_canonicalization,
-            .magic8 = 3,
+            .magic8 = 2,
         }
     },