forked from loafle/openapi-generator-original
Set $Multipart
This commit is contained in:
parent
3af8d66f84
commit
8dc1c81c68
@ -61,9 +61,7 @@ function Invoke-{{{apiNamePrefix}}}ApiClient {
|
|||||||
if ($ContentType) {
|
if ($ContentType) {
|
||||||
$HeaderParameters['Content-Type'] = $ContentType
|
$HeaderParameters['Content-Type'] = $ContentType
|
||||||
if ($ContentType -eq 'multipart/form-data') {
|
if ($ContentType -eq 'multipart/form-data') {
|
||||||
[string]$MultiPartBoundary = [System.Guid]::NewGuid()
|
$MultiPart = $true
|
||||||
$MultiPartBoundary = "---------------------------$MultiPartBoundary"
|
|
||||||
$HeaderParameters['Content-Type'] = "$ContentType; boundary=$MultiPartBoundary"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user