Skip to content

Commit

Permalink
Set default value of MaxBodyLength to "2M"
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Feb 18, 2023
1 parent 803f824 commit 4492918
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config_defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"timeout": "30s",
"readTimeout": "10s",
"writeTimeout": "10s",
"maxBodyLength": "1M"
"maxBodyLength": "2M"
},
"debugRequestLoggerEnabled": false
},
Expand Down
4 changes: 2 additions & 2 deletions documentation/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ Example:
| timeout | The timeout after which a long running operation will be canceled | string | "30s" |
| readTimeout | The read timeout for the HTTP request body | string | "10s" |
| writeTimeout | The write timeout for the HTTP response body | string | "10s" |
| maxBodyLength | The maximum number of characters that the body of an API call may contain | string | "1M" |
| maxBodyLength | The maximum number of characters that the body of an API call may contain | string | "2M" |

Example:

Expand Down Expand Up @@ -446,7 +446,7 @@ Example:
"timeout": "30s",
"readTimeout": "10s",
"writeTimeout": "10s",
"maxBodyLength": "1M"
"maxBodyLength": "2M"
},
"debugRequestLoggerEnabled": false
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/webapi/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type ParametersWebAPI struct {
Timeout time.Duration `default:"30s" usage:"the timeout after which a long running operation will be canceled"`
ReadTimeout time.Duration `default:"10s" usage:"the read timeout for the HTTP request body"`
WriteTimeout time.Duration `default:"10s" usage:"the write timeout for the HTTP response body"`
MaxBodyLength string `default:"1M" usage:"the maximum number of characters that the body of an API call may contain"`
MaxBodyLength string `default:"2M" usage:"the maximum number of characters that the body of an API call may contain"`
}

DebugRequestLoggerEnabled bool `default:"false" usage:"whether the debug logging for requests should be enabled"`
Expand Down

0 comments on commit 4492918

Please sign in to comment.