From 8dc1c81c687ba48279567f6fa8328eaecb7ab5c7 Mon Sep 17 00:00:00 2001 From: condorcorde Date: Thu, 4 Apr 2024 22:05:40 +0200 Subject: [PATCH] Set $Multipart --- .../src/main/resources/powershell/api_client.mustache | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/powershell/api_client.mustache b/modules/openapi-generator/src/main/resources/powershell/api_client.mustache index a9b2d04c9a8..96ad51bae69 100644 --- a/modules/openapi-generator/src/main/resources/powershell/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/powershell/api_client.mustache @@ -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 } }