Removed useless timelife
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
c3882de838
commit
a07c11228f
@ -4,7 +4,7 @@ use json::{JsonValue, object};
|
||||
use dotenv::dotenv;
|
||||
|
||||
|
||||
async fn body_to_str<'a>(res: Response<Body>) -> String {
|
||||
async fn body_to_str(res: Response<Body>) -> String {
|
||||
let body = hyper::body::to_bytes(res).await.unwrap();
|
||||
let body_str = std::str::from_utf8(&body).unwrap().clone();
|
||||
return body_str.to_string();
|
||||
|
Loading…
Reference in New Issue
Block a user