mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 20:00:02 +00:00
add xml2js options
This commit is contained in:
@@ -235,7 +235,11 @@ class App {
|
|||||||
|
|
||||||
// Support application/xml type post data
|
// Support application/xml type post data
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
this.app.use(bodyParser.xml({ limit: "16mb" }));
|
this.app.use(bodyParser.xml({ limit: "16mb", xmlParseOptions: {
|
||||||
|
normalize: true, // Trim whitespace inside text nodes
|
||||||
|
normalizeTags: true, // Transform tags to lowercase
|
||||||
|
explicitArray: false // Only put properties in array if length > 1
|
||||||
|
} }));
|
||||||
|
|
||||||
// Make sure that Vue history mode works properly
|
// Make sure that Vue history mode works properly
|
||||||
this.app.use(history({
|
this.app.use(history({
|
||||||
|
|||||||
Reference in New Issue
Block a user