1
0
Fork 0
mirror of https://github.com/n8n-io/n8n.git synced 2025-03-05 20:50:17 -08:00

add xml2js options

This commit is contained in:
quansenB 2019-12-09 01:24:04 +01:00
parent a53d111e56
commit ca2cc3b0cd

View file

@ -235,7 +235,11 @@ class App {
// Support application/xml type post data
// @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
this.app.use(history({