jericho     2002/09/23 09:37:06

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpClient.java
  Log:
  - Sorry, haven't tried yet...  so made a mistake.  :(
  
  Revision  Changes    Path
  1.57      +8 -8      
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java
  
  Index: HttpClient.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- HttpClient.java   23 Sep 2002 16:03:48 -0000      1.56
  +++ HttpClient.java   23 Sep 2002 16:37:06 -0000      1.57
  @@ -262,7 +262,7 @@
   
       /**
        * Start an HTTP or HTTPS session with the server specified by the scheme,
  -     * host and port of the given <i>uri</i>.
  +     * userinfo, host and port of the given <i>uri</i>.
        * <p>
        * Note that the path component is not utilized.
        * <p>
  @@ -279,9 +279,9 @@
               throw new IllegalArgumentException("no scheme to start a session");
           }
           boolean secure = scheme.equalsIgnoreCase("https") ? true : false;
  -        if (!secure || !scheme.equalsIgnoreCase("http")) {
  +        if (!(secure || scheme.equalsIgnoreCase("http"))) {
               throw new IllegalArgumentException
  -                ("http and https schemes only supported");
  +                ("http and https scheme only supported");
           }
           String userinfo = uri.getUserinfo();
           if (userinfo != null) {
  @@ -295,7 +295,7 @@
           int port = uri.getPort();
           if (port == -1) {   // neither HttpURL or HttpsURL instance
               throw new IllegalArgumentException
  -                ("HttpURL or HttpsURL instances required");
  +                ("HttpURL or HttpsURL instance required");
           }
           connection = new HttpConnection(host, port, secure);
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to