client: do a POST instead of PUT in post_without_body

Probably a copy-paste mistake.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
Lukas Wagner 2024-01-03 15:04:59 +01:00 committed by Wolfgang Bumiller
parent 1f377da07c
commit 228ce9d69c

View File

@ -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
})
}