From 68dfbf31e94d335e8472cd139bc93681432bf2b4 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 16 Apr 2021 01:48:04 +0300 Subject: Give up on content length --- src/custom_filters.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/custom_filters.rs b/src/custom_filters.rs index 299cd8d..7e0cae5 100644 --- a/src/custom_filters.rs +++ b/src/custom_filters.rs @@ -11,7 +11,6 @@ pub fn with_db(db: Db) -> impl Filter + Clo /// Extracts an `InitialAuthRequest` JSON body from the request /// Accepts only JSON encoded `AuthRequest` body and rejects big payloads /// -// TODO: find a good limit for this, (=e2482057; 8 char String + rsa pem) <11-04-21, yigit> // pub fn auth_request_json_body( ) -> impl Filter + Clone { warp::body::content_length_limit(1024 * 32).and(warp::body::json()) @@ -19,7 +18,6 @@ pub fn auth_request_json_body( /// Extracts an `Transaction` JSON body from the request /// Accepts only JSON encoded `Transaction` body and rejects big payloads -// TODO: find a good limit for this <11-04-21, yigit> // pub fn transaction_json_body() -> impl Filter + Clone { warp::body::content_length_limit(1024 * 32).and(warp::body::json()) } @@ -33,7 +31,6 @@ pub fn auth_header() -> impl Filter + Cl /// Extracts an `Block` JSON body from the request /// Accepts only JSON encoded `Block` body and rejects big payloads -// TODO: find a good limit for this <11-04-21, yigit> // pub fn block_json_body() -> impl Filter + Clone { warp::body::content_length_limit(1024 * 32).and(warp::body::json()) } -- cgit v1.2.3-70-g09d2