From 5f345c0213cde1f905d0cc012d461e4cd693ec62 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Thu, 3 Oct 2024 21:10:30 +0800 Subject: [PATCH] update php samples --- samples/client/petstore/php/psr-18/lib/Api/FakeApi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/client/petstore/php/psr-18/lib/Api/FakeApi.php b/samples/client/petstore/php/psr-18/lib/Api/FakeApi.php index df9281344092..4480a3fb26d5 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/FakeApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/FakeApi.php @@ -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 {