aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2023-01-30 10:56:35 +0000
committerAlex <alex@adnab.me>2023-01-30 10:56:35 +0000
commitf9573b69121b72ea27c557b515334c7ddd54c534 (patch)
tree05e7eccb7c2e330d3a1d3661f03dfb51d2733b47
parent4d3a5f29e08364c6854eaefbe1e7ca48228dcf32 (diff)
parente85a200189944dce36c09eaafd03799e55fc4ae7 (diff)
downloadgarage-f9573b69121b72ea27c557b515334c7ddd54c534.tar.gz
garage-f9573b69121b72ea27c557b515334c7ddd54c534.zip
Merge pull request 'Fix duplicated content-type in error document' (#493) from baptiste/garage:fix_error_document_content_type into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/493
-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') {