Fix HTTP return code

This commit is contained in:
Alex Auvolat 2022-11-08 15:38:53 +01:00
parent fc2729cd81
commit 217abdca18
No known key found for this signature in database
GPG Key ID: 0E496D15096376BE

View File

@ -167,7 +167,7 @@ pub async fn handle_apply_cluster_layout(
garage.system.update_cluster_layout(&layout).await?;
Ok(Response::builder()
.status(StatusCode::NO_CONTENT)
.status(StatusCode::OK)
.header(http::header::CONTENT_TYPE, "text/plain")
.body(Body::from(msg.join("\n")))?)
}