forked from loafle/openapi-generator-original
* [php] Set $multipart to true if content-type is multipart/form-data (#5536) Related: https://github.com/OpenAPITools/openapi-generator/issues/5536 * [php] Use isMultipart variable --------- Co-authored-by: Simon Hammes <simonhammes@users.noreply.github.com>
This commit is contained in:
parent
cdfab4eee3
commit
9b3484cc99
@ -688,6 +688,9 @@ use {{invokerPackage}}\ObjectSerializer;
|
|||||||
}
|
}
|
||||||
{{/formParams}}
|
{{/formParams}}
|
||||||
|
|
||||||
|
{{#isMultipart}}
|
||||||
|
$multipart = true;
|
||||||
|
{{/isMultipart}}
|
||||||
$headers = $this->headerSelector->selectHeaders(
|
$headers = $this->headerSelector->selectHeaders(
|
||||||
[{{#produces}}'{{{mediaType}}}', {{/produces}}],
|
[{{#produces}}'{{{mediaType}}}', {{/produces}}],
|
||||||
$contentType,
|
$contentType,
|
||||||
|
@ -2571,6 +2571,7 @@ class PetApi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$multipart = true;
|
||||||
$headers = $this->headerSelector->selectHeaders(
|
$headers = $this->headerSelector->selectHeaders(
|
||||||
['application/json', ],
|
['application/json', ],
|
||||||
$contentType,
|
$contentType,
|
||||||
@ -2917,6 +2918,7 @@ class PetApi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$multipart = true;
|
||||||
$headers = $this->headerSelector->selectHeaders(
|
$headers = $this->headerSelector->selectHeaders(
|
||||||
['application/json', ],
|
['application/json', ],
|
||||||
$contentType,
|
$contentType,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user