update php samples

This commit is contained in:
William Cheng 2024-10-03 21:10:30 +08:00
parent c9a9ae0aa8
commit 5f345c0213

View File

@ -672,7 +672,7 @@ class FakeApi
// for HTTP post (form) // for HTTP post (form)
$httpBody = new MultipartStream($multipartContents); $httpBody = new MultipartStream($multipartContents);
} elseif ($headers['Content-Type'] === 'application/json') { } elseif ($this->headerSelector->isJsonMime($headers['Content-Type'])) {
$httpBody = json_encode($formParams); $httpBody = json_encode($formParams);
} else { } else {