Skip to content

Commit e555680

Browse files
committed
Remove trailing backslash
1 parent 640e7dc commit e555680

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.OpenApi/Services/OpenApiFilterService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation. All rights reserved.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

44
using System;
@@ -356,7 +356,7 @@ private static string FormatUrlString(string url, IList<OpenApiServer> serverLis
356356
var queryPath = string.Empty;
357357
foreach (var server in serverList)
358358
{
359-
var serverUrl = server.Url;
359+
var serverUrl = server.Url.TrimEnd('/');
360360
if (!url.Contains(serverUrl))
361361
{
362362
continue;

0 commit comments

Comments
 (0)