Skip to content

Commit

Permalink
Default headers overwritten instead of duplicated | Body parameter in…
Browse files Browse the repository at this point in the history
… post request serialized
  • Loading branch information
Cymanski, Maciej committed Dec 11, 2024
1 parent b218e23 commit 0983473
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ namespace {{packageName}}.Client
{
foreach (var value in headerParam.Value)
{
request.AddHeader(headerParam.Key, value);
request.AddOrUpdateHeader(headerParam.Key, value);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ namespace {{packageName}}.{{apiPackage}}
{{/required}}
{{/formParams}}
{{#bodyParam}}
localVarRequestOptions.Data = {{paramName}};
localVarRequestOptions.Data = {{packageName}}.Client.ClientUtils.Serialize({{paramName}});
{{/bodyParam}}

localVarRequestOptions.Operation = "{{classname}}.{{operationId}}";
Expand Down Expand Up @@ -693,7 +693,7 @@ namespace {{packageName}}.{{apiPackage}}
{{/required}}
{{/formParams}}
{{#bodyParam}}
localVarRequestOptions.Data = {{paramName}};
localVarRequestOptions.Data = {{packageName}}.Client.ClientUtils.Serialize({{paramName}});
{{/bodyParam}}

localVarRequestOptions.Operation = "{{classname}}.{{operationId}}";
Expand Down

0 comments on commit 0983473

Please sign in to comment.