diff --git a/src/main.rs b/src/main.rs index da052d7d51..8b38ae9fc3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -285,7 +285,7 @@ async fn service(req: hyper::Request, app: Arc) -> http::Result Ok(hyper::Response::builder() - .body(body.into()) + .body(body) .expect("Should have been able to construct a response")), Err(e) => { let json = serde_json::json!({"error": e.to_string()}).to_string();