-
|
I'm serving a file using let body_bytes = response.try_into_bytes().unwrap();
let body_text = str::from_utf8(&body_bytes).unwrap();I'm getting: Any suggestions? |
Beta Was this translation helpful? Give feedback.
Answered by
orhun
Apr 28, 2022
Replies: 1 comment
-
|
I figured it out 🐻 let body_bytes = actix_web::body::to_bytes(body).await.unwrap();
let body_text = str::from_utf8(&body_bytes).unwrap();Thanks to |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
orhun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured it out 🐻
Thanks to
to_bytes