commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient ResponseInputStream.java
Date Sun, 02 Dec 2001 17:16:28 GMT
remm        01/12/02 09:16:28

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        ResponseInputStream.java
  Log:
  - The name of the TEs is a case-insensitive value (see section 3.6 of the HTTP/1.1
    specification).
    Thanks to Paul C. Bryan <pbryan at creatia.com> for the patch.
  
  Revision  Changes    Path
  1.10      +5 -5      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/ResponseInputStream.java
  
  Index: ResponseInputStream.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/ResponseInputStream.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ResponseInputStream.java	2001/10/04 22:20:48	1.9
  +++ ResponseInputStream.java	2001/12/02 17:16:28	1.10
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/ResponseInputStream.java,v
1.9 2001/10/04 22:20:48 rwaldhoff Exp $
  - * $Revision: 1.9 $
  - * $Date: 2001/10/04 22:20:48 $
  + * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/ResponseInputStream.java,v
1.10 2001/12/02 17:16:28 remm Exp $
  + * $Revision: 1.10 $
  + * $Date: 2001/12/02 17:16:28 $
    * ====================================================================
    *
    * The Apache Software License, Version 1.1
  @@ -70,7 +70,7 @@
    * <p>{@link InputStream} wrapper supporting the chunked transfer encoding.</p>
    *
    * @author <a href="mailto:remm@apache.org">Remy Maucherat</a>
  - * @version $Revision: 1.9 $ $Date: 2001/10/04 22:20:48 $
  + * @version $Revision: 1.10 $ $Date: 2001/12/02 17:16:28 $
    */
   public class ResponseInputStream extends InputStream {
   
  @@ -96,7 +96,7 @@
           // Retrieving transfer encoding header
           Header transferEncoding = method.getResponseHeader("transfer-encoding");
           if((null != transferEncoding)
  -            && (transferEncoding.getValue().indexOf("chunked") != -1))
  +            && (transferEncoding.getValue().toLowerCase().indexOf("chunked") !=
-1))
               chunk = true;
   
           // Retrieving content length header
  
  
  

--
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