]> git.proxmox.com Git - proxmox.git/commitdiff
client: do a POST instead of PUT in `post_without_body`
authorLukas Wagner <l.wagner@proxmox.com>
Wed, 3 Jan 2024 14:04:59 +0000 (15:04 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 4 Jan 2024 07:15:01 +0000 (08:15 +0100)
Probably a copy-paste mistake.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
proxmox-client/src/client.rs

index bd8d45cbb7cdee261459d5735feca38a1d4170d9..5a75f0108e44064cb2476b8c6ec8e483ecbaa766 100644 (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
         })
     }