Removed useless timelife

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2021-10-18 09:36:00 +02:00
parent c3882de838
commit a07c11228f
No known key found for this signature in database
GPG Key ID: 0C87282F76E61283

View File

@ -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();