dotgnu-pnet-commits
[Top][All Lists]
Advanced

[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))
                {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]