Skip to content

Commit

Permalink
Update src/MMLib.SwaggerForOcelot/ServiceDiscovery/SwaggerServiceDisc…
Browse files Browse the repository at this point in the history
…overyProvider.cs
  • Loading branch information
Burgyn authored Oct 4, 2024
1 parent 04778d0 commit c676fe9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ private async Task<Uri> GetSwaggerUri(SwaggerEndPointConfig endPoint, RouteOptio

var builder = new UriBuilder(GetScheme(service, route), service.DownstreamHost, service.DownstreamPort);
if (builder.Scheme.IsNullOrEmpty())
{
builder.Scheme = conf?.Scheme ?? "http";
}
builder.Scheme = conf?.Scheme ?? "http";

if (endPoint.Service.Path.IsNullOrEmpty())
Expand Down

0 comments on commit c676fe9

Please sign in to comment.