Skip to content

Commit 5dd5720

Browse files
authored
minor fix to http basic auth (#5839)
1 parent 6cbc442 commit 5dd5720

File tree

1 file changed

+1
-1
lines changed
  • modules/openapi-generator/src/main/resources/powershell-experimental

1 file changed

+1
-1
lines changed

modules/openapi-generator/src/main/resources/powershell-experimental/api.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function {{{vendorExtensions.x-powershell-method-name}}} {
179179
{{/isKeyInCookie}}
180180
{{/isApiKey}}
181181
{{#isBasicBasic}}
182-
if ($Configuration["Username"] -and $Configuration["Password"]]) {
182+
if ($Configuration["Username"] -and $Configuration["Password"]) {
183183
$LocalVarBytes = [System.Text.Encoding]::UTF8.GetBytes($Configuration["Username"] + ":" + $Configuration["Password"])
184184
$LocalVarBase64Text =[Convert]::ToBase64String($LocalVarBytes)
185185
$LocalVarHeaderParameters['Authorization'] = "Basic " + $LocalVarBase64Text

0 commit comments

Comments
 (0)