Skip to content

Commit b2ec39d

Browse files
Tychshenko, Dmitriymarek-safar
authored andcommitted
Add ordinal comparison when matching request path to listener paths
1 parent 8917ddf commit b2ec39d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcs/class/System.ServiceModel/System.ServiceModel.Channels.Http/HttpListenerManagerTable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public HttpListenerManager GetOrCreateManager (Uri uri, HttpTransportBindingElem
110110

111111
// Lastly, try to match the listener to the start of the current request path
112112
// This is to support WCF methods with path parameters in UriTemplate annotation
113-
m = listeners.FirstOrDefault (p => absolutePath.StartsWith (p.Key.AbsolutePath)).Value;
113+
m = listeners.FirstOrDefault (p => absolutePath.StartsWith (p.Key.AbsolutePath, StringComparison.Ordinal)).Value;
114114
if (m != null)
115115
return m;
116116
}

0 commit comments

Comments
 (0)