fix: increase raw body limit to 4mb for CWMP XML payloads
Build & Deploy / build (push) Successful in 35s
Build & Deploy / docker (push) Successful in 1m7s
Build & Deploy / deploy (push) Successful in 36s

GetParameterNamesResponse from CPEs with many parameters exceeds the
default 56kb raw body limit. Add a 'raw' section in bodyparser config
covering text/xml, application/xml and application/soap+xml with a 4mb
limit to handle large TR-069 discovery responses.
This commit is contained in:
Kevin L'Hereec committed 2026-07-17 16:19:50 +02:00
1 parent 61bfb4e762
commit cce14d7039
1 file changed
+15
+15
View File
@@ -73,6 +73,21 @@ const bodyParserConfig = defineConfig({
*/
types: ['multipart/form-data'],
},
/**
* Config for raw/text body parsing.
* CWMP/TR-069 uses text/xml. A GetParameterNamesResponse can easily
* exceed the default 56kb limit on devices with many parameters.
*/
raw: {
limit: '4mb',
types: [
'text/xml',
'application/xml',
'application/soap+xml',
'text/plain',
],
},
})
export default bodyParserConfig