[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System Uri.cs,1.40,1.41
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System Uri.cs,1.40,1.41 |
Date: |
Sat, 05 Jul 2003 12:26:03 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System
In directory subversions:/tmp/cvs-serv5615/System
Modified Files:
Uri.cs
Log Message:
Fix Uri to allow paths to be used as Uris
Index: Uri.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/Uri.cs,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -r1.40 -r1.41
*** Uri.cs 1 Jun 2003 18:56:24 -0000 1.40
--- Uri.cs 5 Jul 2003 16:26:01 -0000 1.41
***************
*** 655,663 ****
private void CheckParsed()
{
! this.hostNameType = CheckHostName(this.host);
! if(hostNameType==UriHostNameType.Unknown)
{
! throw new UriFormatException(S._("Arg_UriHostName"));
}
if(!CheckSchemeName(this.scheme))
{
--- 655,675 ----
private void CheckParsed()
{
! bool isPath=false;
!
! if((this.host==null || this.host=="") &&
! (this.scheme=="file" || this.scheme==null))
{
! this.scheme=UriSchemeFile;
! this.delim="://";
}
+ else
+ {
+ this.hostNameType = CheckHostName(this.host);
+ if(hostNameType==UriHostNameType.Unknown)
+ {
+ throw new
UriFormatException(S._("Arg_UriHostName"));
+ }
+ }
+
if(!CheckSchemeName(this.scheme))
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System Uri.cs,1.40,1.41,
Gopal.V <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.1115,1.1116
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnet/include il_thread.h,1.11,1.12 il_engine.h,1.38,1.39
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.1115,1.1116
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnet/include il_thread.h,1.11,1.12 il_engine.h,1.38,1.39
- Index(es):