diff options
Diffstat (limited to 'src/api/s3_list.rs')
-rw-r--r-- | src/api/s3_list.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/s3_list.rs b/src/api/s3_list.rs index 39ede3e2..2be47091 100644 --- a/src/api/s3_list.rs +++ b/src/api/s3_list.rs @@ -271,5 +271,7 @@ pub async fn handle_list( writeln!(&mut xml, "</ListBucketResult>").unwrap(); debug!("{}", xml); - Ok(Response::new(Body::from(xml.into_bytes()))) + Ok(Response::builder() + .header("Content-Type", "application/xml") + .body(Body::from(xml.into_bytes()))?) } |