Skip to content

Commit bfc1493

Browse files
committed
Fixing curl $postData for php bindings
1 parent c98a780 commit bfc1493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/php/Swagger.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class APIClient {
6666
}
6767

6868
if (is_object($postData) or is_array($postData)) {
69-
$postData = json_encode($this->sanitizeForSerialization($postData));
69+
$postData = http_build_query($this->sanitizeForSerialization($postData));
7070
}
7171

7272
$url = $this->apiServer . $resourcePath;

0 commit comments

Comments
 (0)