Fix HTTP return code

This commit is contained in:
Alex 2022-11-08 15:38:53 +01:00
parent fc2729cd81
commit 217abdca18
Signed by untrusted user: lx
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")))?)
}