forked from loafle/openapi-generator-original
update php samples
This commit is contained in:
parent
c9a9ae0aa8
commit
5f345c0213
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user