aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-10-11 14:24:49 +0200
committerAlex Auvolat <alex@adnab.me>2021-10-11 14:24:49 +0200
commitf6060b92aa2e8c26d3d1fddb5bb9823db05d4524 (patch)
tree80e837b1becc6f78a8b11265970c6724256886bd
parent0f9d9df83b89774e0446d2397cd41624bc1f7e21 (diff)
downloadgarage-f6060b92aa2e8c26d3d1fddb5bb9823db05d4524.tar.gz
garage-f6060b92aa2e8c26d3d1fddb5bb9823db05d4524.zip
Fix HTTP return code for DeleteObject (fix #98)
-rw-r--r--src/api/s3_delete.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/s3_delete.rs b/src/api/s3_delete.rs
index a391a33e..efe325ae 100644
--- a/src/api/s3_delete.rs
+++ b/src/api/s3_delete.rs
@@ -1,6 +1,6 @@
use std::sync::Arc;
-use hyper::{Body, Request, Response};
+use hyper::{Body, Request, Response, StatusCode};
use garage_util::data::*;
use garage_util::time::*;
@@ -68,6 +68,7 @@ pub async fn handle_delete(
Ok(Response::builder()
.header("x-amz-version-id", hex::encode(delete_marker_version))
+ .status(StatusCode::NO_CONTENT)
.body(Body::from(vec![]))
.unwrap())
}