Skip to content

Commit fcddc59

Browse files
committed
build samples
1 parent c46fb09 commit fcddc59

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • samples/client/petstore/csharp/generichost/latest/HelloWorld/src/Org.OpenAPITools/Api

samples/client/petstore/csharp/generichost/latest/HelloWorld/src/Org.OpenAPITools/Api/DefaultApi.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,9 @@ public async Task<IHelloWorldPostApiResponse> HelloWorldPostAsync(Option<HelloWo
242242
uriBuilderLocalVar.Host = HttpClient.BaseAddress!.Host;
243243
uriBuilderLocalVar.Port = HttpClient.BaseAddress.Port;
244244
uriBuilderLocalVar.Scheme = HttpClient.BaseAddress.Scheme;
245-
uriBuilderLocalVar.Path = string.Concat(HttpClient.BaseAddress.AbsolutePath, "/helloWorld");
245+
uriBuilderLocalVar.Path = HttpClient.BaseAddress.AbsolutePath == "/"
246+
? "/helloWorld"
247+
: string.Concat(HttpClient.BaseAddress.AbsolutePath, "/helloWorld");
246248

247249
if (helloWorldPostRequest.IsSet)
248250
httpRequestMessageLocalVar.Content = (helloWorldPostRequest.Value as object) is System.IO.Stream stream

0 commit comments

Comments
 (0)