mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-28 07:57:02 +00:00
Use status code 204 No Content for empty responses
This commit is contained in:
+1
-1
@@ -153,7 +153,7 @@ pub async fn handle_insert_item(
|
||||
.await?;
|
||||
|
||||
Ok(Response::builder()
|
||||
.status(StatusCode::OK)
|
||||
.status(StatusCode::NO_CONTENT)
|
||||
.body(Body::empty())?)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user