1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-09-25 22:29:45 +00:00

Apply stream read limit

This commit is contained in:
2020-06-20 10:47:06 +02:00
parent 32b6c95e9f
commit bab1fe8272
2 changed files with 18 additions and 7 deletions

View File

@@ -40,4 +40,4 @@ pub const DEFAULT_ACCOUNT_IMAGE: &str = "avatars/0Reverse.png";
pub const ERROR_ACCOUNT_IMAGE: &str = "avatars/0Red.png";
/// Maximum requests size (50 Mo)
pub const MAX_REQUEST_SIZE: u64 = 50000000;
pub const MAX_REQUEST_SIZE: usize = 50000000;