From 33aadc41d0f4f6f8c0c825a38ab876744abdb0e7 Mon Sep 17 00:00:00 2001 From: Omer Sabic Date: Thu, 13 Jun 2024 11:34:50 +0200 Subject: [PATCH] bugfix --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 7030ae1..dae0b55 100644 --- a/src/index.js +++ b/src/index.js @@ -59,7 +59,7 @@ export const main = async () => { }); server.addContentTypeParser(['text/xml', 'application/xml', 'application/atom+xml'], function (request, payload, done) { - xml2js(payload, function (err, body) { + xml2js.parseString(payload, function (err, body) { done(err, body) }) })