* Uri.cs: Equals should be case insensitive for all parts except
authorJackson Harper <jackson@novell.com>
Mon, 22 Mar 2004 06:16:01 +0000 (06:16 -0000)
committerJackson Harper <jackson@novell.com>
Mon, 22 Mar 2004 06:16:01 +0000 (06:16 -0000)
the path.

svn path=/trunk/mcs/; revision=24401

mcs/class/System/System/ChangeLog
mcs/class/System/System/Uri.cs

index ed67ab71c8945420d7049412a2b792d341181958..bb947f93c476ad270e012e94c20e1c0460984ab0 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-21  Jackson Harper  <jackson@ximian.com>
+
+       * Uri.cs: Equals should be case insensitive for all parts except
+       the path.
+
 2004-02-11  Jackson Harper  <jackson@ximian.com>
 
        * Uri.cs: If we are sure we have a windows path use \ instead of
index 1c6407b16b271f361534a76d44f8ec495f73d3c6..c5b751c63e484416407f2ebb68dde32d1ba12551 100755 (executable)
@@ -510,12 +510,12 @@ namespace System
                                uri = new Uri (s);
                        }
                        
-                       return ((this.scheme == uri.scheme) &&
-                               (this.userinfo == uri.userinfo) &&
-                               (this.host == uri.host) &&
-                               (this.port == uri.port) &&
-                               (this.path == uri.path) &&
-                               (this.query == uri.query));
+                       return ((this.scheme.ToLower () == uri.scheme.ToLower ()) &&
+                               (this.userinfo.ToLower () == uri.userinfo.ToLower ()) &&
+                               (this.host.ToLower () == uri.host.ToLower ()) &&
+                               (this.port == uri.port) &&
+                               (this.path == uri.path) &&
+                               (this.query.ToLower () == uri.query.ToLower ()));
                }               
                
                public override int GetHashCode ()