Skip to content

Commit 5ca6e8a

Browse files
authored
Update Servers.php - BUG: Firewalls Request Option should not get json encoded (#99)
The whole Request seems to be json encoded - the API throws an error if the firewall option is json encoded before
1 parent e8bdd47 commit 5ca6e8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/Servers/Servers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function createInDatacenter(
165165
$parameters['labels'] = $labels;
166166
}
167167
if (! empty($firewalls)) {
168-
$parameters['firewalls'] = json_encode($firewalls);
168+
$parameters['firewalls'] = $firewalls;
169169
}
170170
$response = $this->httpClient->post('servers', [
171171
'json' => $parameters,

0 commit comments

Comments
 (0)