aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/s3/error.rs')
-rw-r--r--src/api/s3/error.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/api/s3/error.rs b/src/api/s3/error.rs
index ac632540..67009d63 100644
--- a/src/api/s3/error.rs
+++ b/src/api/s3/error.rs
@@ -172,6 +172,9 @@ impl ApiError for Error {
fn add_http_headers(&self, header_map: &mut HeaderMap<HeaderValue>) {
use hyper::header;
+
+ header_map.append(header::CONTENT_TYPE, "application/xml".parse().unwrap());
+
#[allow(clippy::single_match)]
match self {
Error::InvalidRange((_, len)) => {