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) {
|
||||
$HeaderParameters['Content-Type'] = $ContentType
|
||||
if ($ContentType -eq 'multipart/form-data') {
|
||||
[string]$MultiPartBoundary = [System.Guid]::NewGuid()
|
||||
$MultiPartBoundary = "---------------------------$MultiPartBoundary"
|
||||
$HeaderParameters['Content-Type'] = "$ContentType; boundary=$MultiPartBoundary"
|
||||
$MultiPart = $true
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user