From 7288f4f693406a8c0e2c4de6718539547e55a8bc Mon Sep 17 00:00:00 2001
From: Yigit Sever
Date: Sun, 11 Apr 2021 16:38:14 +0300
Subject: cannot consume body twice

---
 src/auth.rs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/auth.rs b/src/auth.rs
index 51b2e6a..2fcc7a6 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -100,7 +100,10 @@ async fn authorize(
                 a: decoded.claims.puk,
             })
         }
-        Err(e) => return Err(warp::reject::custom(RateLimited)),
+        Err(e) =>  {
+            println!("HELLOO");
+            return Err(warp::reject::custom(RateLimited));
+        }
     }
 }
 
-- 
cgit v1.2.3-70-g09d2