Fix Caddy configuration patching
All checks were successful
Build / build (push) Successful in 1m56s

This commit is contained in:
Moritz Ruth 2025-03-02 16:57:42 +01:00
parent ee494709ac
commit 11ed96b683
Signed by: moritzruth
GPG key ID: C9BBAB79405EE56D

View file

@ -135,7 +135,7 @@ impl CaddyController {
let mut request = Request::patch(Url::from_str(&format!("http://localhost/id/{}", domain))?);
request.insert_header("Content-Type", "application/json");
request.set_body(configuration_object.to_string());
let mut response = request_uds(&self.admin_api_socket_path, request.clone()).await.unwrap();
let mut response = request_uds(&self.admin_api_socket_path, request).await.unwrap();
match response.status() {
StatusCode::Ok => {