From e9d1e64acce7b48409193080c8a7f55ab55dacb0 Mon Sep 17 00:00:00 2001 From: Talha Quddoos <60311647+TalhaQuddoos@users.noreply.github.com> Date: Mon, 24 Oct 2022 00:40:12 +0500 Subject: [PATCH] Replace form_vars with json --- src/Proxmox/Helper/Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Proxmox/Helper/Api.php b/src/Proxmox/Helper/Api.php index 48a2474..455ebac 100644 --- a/src/Proxmox/Helper/Api.php +++ b/src/Proxmox/Helper/Api.php @@ -181,7 +181,7 @@ public function getCSRFToken(): ?array 'verify' => false, 'debug' => $this->PVE->getDebug() ? fopen('php://stderr', 'w') : null, 'headers' => $this->defaultHeaders, - 'form_params' => [ + 'json' => [ 'username' => $this->PVE->getUsername(), 'password' => $this->PVE->getPassword(), 'realm' => $this->PVE->getAuthType(),