From 1d69d50b6dc27b05e4d499634fb988e0fe7726cf Mon Sep 17 00:00:00 2001 From: David Alsh Date: Mon, 19 Oct 2026 07:32:48 +0000 Subject: [PATCH] fix(http1): return generic 500 body and log error server-side Fixes #38 --- src/platform/http1/http1_server.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platform/http1/http1_server.rs b/src/platform/http1/http1_server.rs index bbc16ec..0d2fc7d 100644 --- a/src/platform/http1/http1_server.rs +++ b/src/platform/http1/http1_server.rs @@ -59,7 +59,8 @@ where } fn handle_error(error: anyhow::Error) -> Response> { - let content = HyperBytes::from(format!("{}", error)); + eprintln!("[500] {error:#}"); + let content = HyperBytes::from("Internal Server Error"); let body = BoxBody::new(Full::new(content)); let response = Response::builder().status(500).body(body);