fix: increase raw body limit to 4mb for CWMP XML payloads
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:
1 parent
61bfb4e762
commit
cce14d7039
1 file changed
+15
@@ -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
|
||||
Reference in new issue
Block a user