Skip to content

Commit 43cbbcf

Browse files
authored
Merge pull request parallaxsecond#234 from joechrisellis/body_len_limit_fix
Bugfix: fix off-by-one error (default body length limit)
2 parents f3b12da + cee10dd commit 43cbbcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/service_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const WIRE_PROTOCOL_VERSION_MINOR: u8 = 0;
5151
const WIRE_PROTOCOL_VERSION_MAJOR: u8 = 1;
5252

5353
/// Default value for the limit on the request body size (in bytes) - equal to 1MB
54-
const DEFAULT_BODY_LEN_LIMIT: usize = 1 << 19;
54+
const DEFAULT_BODY_LEN_LIMIT: usize = 1 << 20;
5555

5656
type KeyInfoManager = Arc<RwLock<dyn ManageKeyInfo + Send + Sync>>;
5757
type Provider = Arc<dyn Provide + Send + Sync>;

0 commit comments

Comments
 (0)