diff --git a/src/requester.rs b/src/requester.rs index a92d07d..8ac9622 100644 --- a/src/requester.rs +++ b/src/requester.rs @@ -19,6 +19,6 @@ impl Requester { req: Request, ) -> Result> { let body = req.collect().await?.to_bytes(); - Ok(String::from_utf8_lossy(&body).to_string()) + Ok(String::from_utf8(body.to_vec())?) } }