From f6060b92aa2e8c26d3d1fddb5bb9823db05d4524 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 11 Oct 2021 14:24:49 +0200 Subject: Fix HTTP return code for DeleteObject (fix #98) --- src/api/s3_delete.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) } -- cgit v1.2.3