Skip to content

Commit 35024cf

Browse files
authored
Fix documentation for max_request_body_size (#11074)
#### Description Fix documentation for max_request_body_size #### Link to tracking issue Fixes #11066
1 parent ec5d94a commit 35024cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/confighttp/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ will not be enabled.
7878
header, allowing clients to cache the response to CORS preflight requests. If
7979
not set, browsers use a default of 5 seconds.
8080
- `endpoint`: Valid value syntax available [here](https://github.com/grpc/grpc/blob/master/doc/naming.md)
81-
- `max_request_body_size`: configures the maximum allowed body size in bytes for a single request. Default: `0` (no restriction)
81+
- `max_request_body_size`: configures the maximum allowed body size in bytes for a single request. Default: `20971520` (20MiB)
8282
- `compression_algorithms`: configures the list of compression algorithms the server can accept. Default: ["", "gzip", "zstd", "zlib", "snappy", "deflate"]
8383
- [`tls`](../configtls/README.md)
8484
- [`auth`](../configauth/README.md)

receiver/otlpreceiver/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Config defines configuration for OTLP receiver.
7676
| endpoint | string | localhost:4318 | Endpoint configures the listening address for the server. |
7777
| tls | [configtls-TLSServerSetting](#configtls-tlsserversetting) | <no value> | TLSSetting struct exposes TLS client configuration. |
7878
| cors | [confighttp-CORSConfig](#confighttp-corsconfig) | <no value> | CORSConfig configures a receiver for HTTP cross-origin resource sharing (CORS). |
79-
| max_request_body_size | int | 0 | MaxRequestBodySize configures the maximum allowed body size in bytes for a single request. The default `0` means there's no restriction |
79+
| max_request_body_size | int | 20971520 | MaxRequestBodySize configures the maximum allowed body size in bytes for a single request. The default `20971520` means 20MiB |
8080

8181
### confighttp-CORSConfig
8282

0 commit comments

Comments
 (0)