Skip to content

Commit 5f345c0

Browse files
committed
update php samples
1 parent c9a9ae0 commit 5f345c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/client/petstore/php/psr-18/lib/Api/FakeApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ public function fakeEnumEndpointRequest($enum_class, $enum_class_array, $enum_cl
672672
// for HTTP post (form)
673673
$httpBody = new MultipartStream($multipartContents);
674674

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

678678
} else {

0 commit comments

Comments
 (0)