+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
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 ()