Fix HTTP return code
This commit is contained in:
parent
fc2729cd81
commit
217abdca18
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ pub async fn handle_apply_cluster_layout(
|
||||||
garage.system.update_cluster_layout(&layout).await?;
|
garage.system.update_cluster_layout(&layout).await?;
|
||||||
|
|
||||||
Ok(Response::builder()
|
Ok(Response::builder()
|
||||||
.status(StatusCode::NO_CONTENT)
|
.status(StatusCode::OK)
|
||||||
.header(http::header::CONTENT_TYPE, "text/plain")
|
.header(http::header::CONTENT_TYPE, "text/plain")
|
||||||
.body(Body::from(msg.join("\n")))?)
|
.body(Body::from(msg.join("\n")))?)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue