commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpMethodBase.java
Date Thu, 01 May 2003 19:14:17 GMT
olegk       2003/05/01 12:14:17

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpMethodBase.java
  Log:
  Corrects a bug in HttpMethodBase#readStatusLine introduced with a previous patch
  
  Committed by Oleg Kalnichevski
  
  Revision  Changes    Path
  1.143     +6 -15     jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java
  
  Index: HttpMethodBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v
  retrieving revision 1.142
  retrieving revision 1.143
  diff -u -r1.142 -r1.143
  --- HttpMethodBase.java	1 May 2003 12:27:42 -0000	1.142
  +++ HttpMethodBase.java	1 May 2003 19:14:17 -0000	1.143
  @@ -2085,19 +2085,10 @@
   
           //check for a valid HTTP-Version
           String httpVersion = statusLine.getHttpVersion();
  -        // TODO: Once a better HTTP protocol versioning scheme is 
  -        // introduced, rework the code below 
  -        boolean proxied = 
  -         statusLine.getStatusCode() == HttpStatus.SC_PROXY_AUTHENTICATION_REQUIRED; 
  -        
           if (httpVersion.equals("HTTP/1.0")) {
  -            if (!proxied) {
  -                http11 = false;
  -            }
  +            http11 = false;
           } else if (httpVersion.equals("HTTP/1.1")) {
  -            if (!proxied) {
  -                http11 = true;
  -            }
  +            http11 = true;
           } else if (httpVersion.equals("HTTP")) {
               // some servers do not specify the version correctly, we will just assume 1.0
               http11 = false;
  
  
  

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


Mime
View raw message