Skip to content

Commit

Permalink
Replace form_vars with json
Browse files Browse the repository at this point in the history
  • Loading branch information
TalhaQuddoos authored Oct 23, 2022
1 parent defa14b commit e9d1e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Proxmox/Helper/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit e9d1e64

Please sign in to comment.