Skip to content

Commit

Permalink
Bugfix delete method wrong content method
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKampf committed Jul 23, 2023
1 parent 0274b64 commit 5dbf6e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Proxmox/Helper/ApiPVE.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function delete(string $path, array $params = []): ?array
]),
'exceptions' => false,
'cookies' => $this->PVE->getCookie(),
'json' => (count($params) > 0) ? $params : null,
'query' => (count($params) > 0) ? $params : null,
]));
} catch (GuzzleException $exception) {
if ($this->PVE->getDebug()) {
Expand Down
2 changes: 1 addition & 1 deletion src/Proxmox/Helper/ApiToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function delete(string $path, array $params = []): ?array
'Content-Type' => (count($params) > 0) ? 'application/json' : null,
]),
'exceptions' => false,
'json' => (count($params) > 0) ? $params : null,
'query' => (count($params) > 0) ? $params : null,
]));
} catch (GuzzleException $exception) {
if ($this->API->getDebug()) {
Expand Down

0 comments on commit 5dbf6e9

Please sign in to comment.