From e85a200189944dce36c09eaafd03799e55fc4ae7 Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Sun, 29 Jan 2023 22:51:20 +0100 Subject: [PATCH] Fix duplicated content-type in error document Fixes #492 --- src/web/web_server.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/web/web_server.rs b/src/web/web_server.rs index 1541c297..5719da54 100644 --- a/src/web/web_server.rs +++ b/src/web/web_server.rs @@ -249,7 +249,6 @@ impl WebServer { ); *error_doc.status_mut() = error.http_status_code(); - error.add_headers(error_doc.headers_mut()); // Preserve error message in a special header for error_line in error.to_string().split('\n') {