commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka/http RequestImpl.java
Date Wed, 18 Sep 2002 16:03:36 GMT
morgand     2002/09/18 09:03:36

  Modified:    latka/src/java/org/apache/commons/latka/http
                        RequestImpl.java
  Log:
  applying fix for NPEs in setVersion(String) method
  
  Revision  Changes    Path
  1.31      +7 -5      jakarta-commons/latka/src/java/org/apache/commons/latka/http/RequestImpl.java
  
  Index: RequestImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/http/RequestImpl.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- RequestImpl.java	18 Sep 2002 16:00:00 -0000	1.30
  +++ RequestImpl.java	18 Sep 2002 16:03:36 -0000	1.31
  @@ -514,8 +514,10 @@
        * @param version  HTTP version
        */
       public void setVersion(String version) {
  -        if (version.equals(HTTP_10)) {
  +        if (HTTP_10.equals(version)) {
               ((HttpMethodBase) _httpMethod).setHttp11(false);
  +        } else {
  +            ((HttpMethodBase) _httpMethod).setHttp11(true);
           }
       }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message