Skip to content

Commit

Permalink
Fixes matching APIs in ApiCenterOnboardingPlugin (microsoft#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
waldekmastykarz authored May 21, 2024
1 parent 699342d commit 5f76f8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev-proxy-plugins/RequestLogs/ApiCenterOnboardingPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,8 @@ async Task ImportApiDefinition(string apiDefinitionId, string openApiSpecFilePat

var serverUrl = new Uri(server.Url);
var serverPath = serverUrl.AbsolutePath.TrimEnd('/');
var urlPathFromRequest = requestUrl.Replace(server.Url.TrimEnd('/'), "", StringComparison.OrdinalIgnoreCase);
var requestUri = new Uri(requestUrl);
var urlPathFromRequest = requestUri.GetLeftPart(UriPartial.Path).Replace(server.Url.TrimEnd('/'), "", StringComparison.OrdinalIgnoreCase);

foreach (var path in openApiDocument.Paths)
{
Expand Down

0 comments on commit 5f76f8b

Please sign in to comment.