[pbs-devel] [PATCH proxmox] client: do a POST instead of PUT in `post_without_body`
Lukas Wagner
l.wagner at proxmox.com
Wed Jan 3 15:04:59 CET 2024
Probably a copy-paste mistake.
Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
proxmox-client/src/client.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxmox-client/src/client.rs b/proxmox-client/src/client.rs
index bd8d45c..5a75f01 100644
--- a/proxmox-client/src/client.rs
+++ b/proxmox-client/src/client.rs
@@ -414,7 +414,7 @@ impl HttpApiClient for Client {
let auth = self.login_auth()?;
let uri = self.build_uri(path_and_query)?;
let client = Arc::clone(&self.client);
- Self::authenticated_request(client, auth, http::Method::PUT, uri, None).await
+ Self::authenticated_request(client, auth, http::Method::POST, uri, None).await
})
}
--
2.39.2
More information about the pbs-devel
mailing list