diff options
| -rw-r--r-- | src/handlers/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/handlers/mod.rs b/src/handlers/mod.rs index 9d82b74..81b6035 100644 --- a/src/handlers/mod.rs +++ b/src/handlers/mod.rs @@ -182,7 +182,8 @@ impl IntoResponse for Error { fn into_response(self) -> Response { let result: Vec<u8> = vec![]; templates::error_html(&mut result, format!("{}", self)).unwrap(); - let body = body::boxed(result); + + let body = axum::body::Bytes::copy_from_slice(&result); Response::builder() .status(match self { |
