[csharp][httpclient] Remove noncompliant post behaviour (#9427)

* Remove behaviour that does not 1:1 represent spec

* Update samples
This commit is contained in:
Blackclaws
2021-05-21 08:50:42 +02:00
committed by GitHub
parent 2c4e79f45c
commit 696bcb3e85
2 changed files with 2 additions and 10 deletions

View File

@@ -313,11 +313,7 @@ namespace {{packageName}}.Client
builder.AddPathParameters(options.PathParameters);
// In case of POST or PUT pass query parameters in request body
if (method != HttpMethod.Post && method != HttpMethod.Put)
{
builder.AddQueryParameters(options.QueryParameters);
}
builder.AddQueryParameters(options.QueryParameters);
HttpRequestMessage request = new HttpRequestMessage(method, builder.GetFullUri());

View File

@@ -312,11 +312,7 @@ namespace Org.OpenAPITools.Client
builder.AddPathParameters(options.PathParameters);
// In case of POST or PUT pass query parameters in request body
if (method != HttpMethod.Post && method != HttpMethod.Put)
{
builder.AddQueryParameters(options.QueryParameters);
}
builder.AddQueryParameters(options.QueryParameters);
HttpRequestMessage request = new HttpRequestMessage(method, builder.GetFullUri());