Skip to content

Commit

Permalink
Update Servers.php - BUG: Firewalls Request Option should not get jso…
Browse files Browse the repository at this point in the history
…n encoded (#99)

The whole Request seems to be json encoded - the API throws an error if the firewall option is json encoded before
  • Loading branch information
osthafen committed May 9, 2023
1 parent e8bdd47 commit 5ca6e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Servers/Servers.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function createInDatacenter(
$parameters['labels'] = $labels;
}
if (! empty($firewalls)) {
$parameters['firewalls'] = json_encode($firewalls);
$parameters['firewalls'] = $firewalls;
}
$response = $this->httpClient->post('servers', [
'json' => $parameters,
Expand Down

0 comments on commit 5ca6e8a

Please sign in to comment.