Skip to content

Commit

Permalink
update php samples
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Oct 3, 2024
1 parent c9a9ae0 commit 5f345c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/client/petstore/php/psr-18/lib/Api/FakeApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ public function fakeEnumEndpointRequest($enum_class, $enum_class_array, $enum_cl
// for HTTP post (form)
$httpBody = new MultipartStream($multipartContents);

} elseif ($headers['Content-Type'] === 'application/json') {
} elseif ($this->headerSelector->isJsonMime($headers['Content-Type'])) {
$httpBody = json_encode($formParams);

} else {
Expand Down

0 comments on commit 5f345c0

Please sign in to comment.