Simplify Send size constants

This commit is contained in:
timvisee 2018-04-17 19:34:33 +02:00
parent 4df9788dc1
commit 28d8fa6f1d
No known key found for this signature in database
GPG key ID: 109CBA0BF74036C2
2 changed files with 4 additions and 2 deletions

View file

@ -7,7 +7,7 @@ pub const HTTP_STATUS_EXPIRED: StatusCode = StatusCode::NotFound;
pub const HTTP_STATUS_UNAUTHORIZED: StatusCode = StatusCode::Unauthorized;
/// The recommended maximum upload size in bytes.
pub const UPLOAD_SIZE_MAX_RECOMMENDED: u64 = 1_073_741_824;
pub const UPLOAD_SIZE_MAX_RECOMMENDED: u64 = 1024 * 1024 * 1024 * 1;
/// The maximum upload size in bytes.
pub const UPLOAD_SIZE_MAX: u64 = 2_147_483_648;
pub const UPLOAD_SIZE_MAX: u64 = 1024 * 1024 * 1024 * 2;