File tree Expand file tree Collapse file tree
samples/client/petstore/csharp/generichost/latest/HelloWorld/src/Org.OpenAPITools/Api Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments