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:
parent
a53d111e56
commit
ca2cc3b0cd
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue