Skip to content

Commit 7fa2f2c

Browse files
committed
Add StringComparison.OrdinalIgnoreCase
1 parent 996407c commit 7fa2f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Services/OpenApiUrlTreeNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public OpenApiUrlTreeNode Attach(string path,
150150
}
151151

152152
var segments = path.Split('/');
153-
if (path.EndsWith("/"))
153+
if (path.EndsWith("/", StringComparison.OrdinalIgnoreCase))
154154
{
155155
// Remove the last element, which is empty, and append the trailing slash to the new last element
156156
// This is to support URLs with trailing slashes

0 commit comments

Comments
 (0)