Merge pull request #2964 from ludovic-henry/sgen-monocontext
[mono.git] / mcs / class / referencesource / System.Web / Util / UriUtil.cs
index dd62049e927076124b11614ceece4c60d3571327..091076e02fe2ec8aa165b13652b569ae1b979a04 100644 (file)
@@ -165,7 +165,7 @@ namespace System.Web.Util {
                     // For example, the "//" could be missing, or there could be "///" as in "file:///C:\foo.txt"
                     // To retain the same string as originally given, find the authority in the original url and include
                     // everything up to that.
-                    int authorityIndex = inputWithoutQueryFragment.IndexOf(authority, StringComparison.Ordinal);
+                    int authorityIndex = inputWithoutQueryFragment.IndexOf(authority, StringComparison.OrdinalIgnoreCase);
                     if (authorityIndex != -1) {
                         int schemeAndAuthorityLength = authorityIndex + authority.Length;
                         schemeAndAuthority = inputWithoutQueryFragment.Substring(0, schemeAndAuthorityLength);