aboutsummaryrefslogtreecommitdiff
path: root/src/web/web_server.rs
diff options
context:
space:
mode:
authorBaptiste Jonglez <git@bitsofnetworks.org>2023-01-29 22:51:20 +0100
committerBaptiste Jonglez <git@bitsofnetworks.org>2023-01-29 22:51:23 +0100
commite85a200189944dce36c09eaafd03799e55fc4ae7 (patch)
treed4c8d6ed5e3b663e3c22dc59deb11deee228266a /src/web/web_server.rs
parentdf30f3df4b2b6cb67c4e37117fb30d6f61cfefc5 (diff)
downloadgarage-e85a200189944dce36c09eaafd03799e55fc4ae7.tar.gz
garage-e85a200189944dce36c09eaafd03799e55fc4ae7.zip
Fix duplicated content-type in error document
Fixes #492
Diffstat (limited to 'src/web/web_server.rs')
-rw-r--r--src/web/web_server.rs1
1 files changed, 0 insertions, 1 deletions
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') {