From f25f7f90ff796d75523015344bae6f45fd3161af Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Thu, 22 Jul 2021 21:22:46 +0200 Subject: [PATCH] Implement `IntoResponse` for `Body` --- src/response.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/response.rs b/src/response.rs index de2f5d79..80d2d7a2 100644 --- a/src/response.rs +++ b/src/response.rs @@ -59,6 +59,12 @@ impl IntoResponse for Response { } } +impl IntoResponse for Body { + fn into_response(self) -> Response { + Response::new(self) + } +} + impl IntoResponse for &'static str { #[inline] fn into_response(self) -> Response {