fixed encoding (#21207)

This commit is contained in:
devhl-labs
2025-05-04 10:30:40 -04:00
committed by GitHub
parent 56fe7e3286
commit f3af25b10c
13 changed files with 14 additions and 14 deletions

View File

@@ -142,7 +142,7 @@ namespace Org.OpenAPITools.Client
{
#if (NETCOREAPP)
string framework = RuntimeInformation.FrameworkDescription;
string key = framework.StartsWith(".NET 9")?parameter.Key:HttpUtility.UrlEncode(parameter.Key);
string key = framework.StartsWith(".NET 9") ? parameter.Key : HttpUtility.UrlEncode(parameter.Key);
if (parameter.Value.Count > 1)
{ // array
foreach (var value in parameter.Value)

View File

@@ -142,7 +142,7 @@ namespace Org.OpenAPITools.Client
{
#if (NETCOREAPP)
string framework = RuntimeInformation.FrameworkDescription;
string key = framework.StartsWith(".NET 9")?parameter.Key:HttpUtility.UrlEncode(parameter.Key);
string key = framework.StartsWith(".NET 9") ? parameter.Key : parameter.Key;
if (parameter.Value.Count > 1)
{ // array
foreach (var value in parameter.Value)