Fix configs

This commit is contained in:
2021-05-05 19:25:52 +02:00
parent a4d033195a
commit 0d9ff1c20d
7 changed files with 19 additions and 21 deletions

View File

@@ -50,6 +50,7 @@ const bodyParserConfig: BodyParserConfig = {
|
*/
form: {
convertEmptyStringsToNull: true,
encoding: 'utf-8',
limit: '1mb',
queryString: {},
@@ -147,6 +148,18 @@ const bodyParserConfig: BodyParserConfig = {
*/
encoding: 'utf-8',
/*
|--------------------------------------------------------------------------
| Convert empty strings to null
|--------------------------------------------------------------------------
|
| Convert empty form fields to null. HTML forms results in field string
| value when the field is left blank. This option normalizes all the blank
| field values to "null"
|
*/
convertEmptyStringsToNull: true,
/*
|--------------------------------------------------------------------------
| Max Fields